-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
99 lines (80 loc) · 1.91 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[build]
command = "yarn build:prod"
functions = "functions"
publish = "public"
[build.environment]
NODE_VERSION = "19"
NODE_ENV = "production"
HUGO_VERSION = "0.111.3"
HUGO_ENV = "production"
TZ = "America/New_York"
[context.deploy-preview]
command = "yarn build:stage"
[[headers]]
for = "/*"
[headers.values]
X-Content-Type-Options = "nosniff"
[[headers]]
for = "/*.css"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable" # 1 year
[[headers]]
for = "/*.gif"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2 weeks
[[headers]]
for = "/*.ico"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2 weeks
[[headers]]
for = "/*.jpeg"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2 weeks
[[headers]]
for = "/*.jpg"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2 weeks
[[headers]]
for = "/*.js"
[headers.values]
Cache-Control = "public, max-age=300" # 5 minutes
[[headers]]
for = "/*.json"
[headers.values]
Cache-Control = "public, max-age=3600" # 1 hour
[[headers]]
for = "/*.map"
[headers.values]
Cache-Control = "public, max-age=300" # 5 minutes
[[headers]]
for = "/*.pdf"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2 weeks
[[headers]]
for = "/*.png"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2 weeks
[[headers]]
for = "/*.svg"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2 weeks
[[headers]]
for = "/*.txt"
[headers.values]
Cache-Control = "public, max-age=300" # 5 minutes
[[headers]]
for = "/*.webm"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2 weeks
[[headers]]
for = "/*.woff"
[headers.values]
Access-Control-Allow-Origin = "*"
Cache-Control = "public, max-age=31536000, immutable" # 1 year
[[headers]]
for = "/*.woff2"
[headers.values]
Access-Control-Allow-Origin = "*"
Cache-Control = "public, max-age=31536000, immutable" # 1 year
[[plugins]]
package = "netlify-plugin-hugo-cache-resources"