-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
executable file
·50 lines (43 loc) · 1.78 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[[headers]]
for = "/*"
[headers.values]
Content-Security-Policy = "default-src 'self'; script-src 'self' https://cdnjs.cloudflare.com; style-src 'self' https://fonts.googleapis.com https://cdnjs.cloudflare.com 'unsafe-inline' https://cdn.jsdelivr.net; img-src 'self' data: https:; font-src 'self' https://fonts.gstatic.com https://cdnjs.cloudflare.com https://cdn.jsdelivr.net; connect-src 'self'; frame-src 'none'; object-src 'none'; base-uri 'self'; form-action 'self' https://api.netlify.com; upgrade-insecure-requests;"
X-Content-Type-Options = "nosniff"
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
Referrer-Policy = "strict-origin-when-cross-origin"
Permissions-Policy = "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()"
# Cache static assets
[[headers]]
for = "/assets/*"
[headers.values]
Cache-Control = "public, max-age=80000, immutable"
# Cache favicon files
[[headers]]
for = "/assets/favicon/*"
[headers.values]
Cache-Control = "public, max-age=80000, immutable"
# Cache webmanifest
[[headers]]
for = "/site.webmanifest"
[headers.values]
Cache-Control = "public, max-age=80000, immutable"
# Cache CSS and JavaScript files
[[headers]]
for = "*.css"
[headers.values]
Cache-Control = "public, max-age=80000, immutable"
[[headers]]
for = "*.js"
[headers.values]
Cache-Control = "public, max-age=80000, immutable"
# HTML files should be revalidated
[[headers]]
for = "*.html"
[headers.values]
Cache-Control = "public, max-age=0, must-revalidate"
# Service worker should never be cached
[[headers]]
for = "/service-worker.js"
[headers.values]
Cache-Control = "public, max-age=0, must-revalidate"