forked from catchpoint/WebPageTest.docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
34 lines (33 loc) · 817 Bytes
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[build]
functions = "functions"
[[redirects]]
from = "/latest-webpagetest-run"
to = "/.netlify/functions/get-webpagetest-url"
status = 200
[[redirects]]
from = "/api/integrations"
to = "/integrations"
status = 301
[[redirects]]
from = "/api/faqs"
to = "/webpagetest-faqs"
status = 301
[[redirects]]
from = "/js/*"
to = "https://cdn.jsdelivr.net/npm/:splat"
status = 200
[[headers]]
for = "/*"
[headers.values]
cache-control = "max-age=900,must-revalidate"
x-frame-options = "SAMEORIGIN"
x-xss-protection = "1; mode=block"
x-content-type-options = "nosniff"
[[headers]]
for = "/img/*"
[headers.values]
cache-control = "max-age=31536000"
[[headers]]
for = "/manifest.json"
[headers.values]
cache-control = "max-age=31536000"