-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathnetlify.toml
50 lines (44 loc) · 1.5 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
[build]
publish = "dist"
command = "npm run build"
[[headers]]
for = "/*"
[headers.values]
X-Content-Type-Options = "nosniff"
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
Cache-Control = "public,max-age=3600"
# Content-Security-Policy = '''
# style-src 'self' 'unsafe-inline';
# default-src 'self' www.google-analytics.com;
# child-src 'self' www.youtube.com www.youtube-nocookie.com www.google-analytics.com;
# connect-src 'self' *.mozilla.org www.google-analytics.com;
# img-src 'self' data: www.google-analytics.com;
# # script-src 'self' 'unsafe-inline' 'unsafe-eval' s.ytimg.com www.youtube.com www.googletagmanager.com;
# '''
[[headers]]
for = "/fonts/*"
[headers.values]
# Temporary cache header change until we can get immutable files back
# Cache-Control = "max-age=31536000,public,immutable"
Cache-Control = "public,max-age=3600"
[[headers]]
for = "/css/*"
[headers.values]
# Cache-Control = "max-age=31536000,public,immutable"
Cache-Control = "public,max-age=3600"
[[headers]]
for = "/img/*"
[headers.values]
# Cache-Control = "max-age=31536000,public,immutable"
Cache-Control = "public,max-age=3600"
[[headers]]
for = "/scripts/*"
[headers.values]
# Cache-Control = "max-age=31536000,public,immutable"
Cache-Control = "public,max-age=3600"
[[headers]]
for = "/content/*"
[headers.values]
# Cache-Control = "max-age=31536000,public,immutable"
Cache-Control = "public,max-age=3600"