-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnetlify.toml
More file actions
41 lines (34 loc) · 874 Bytes
/
netlify.toml
File metadata and controls
41 lines (34 loc) · 874 Bytes
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
[build]
command = "npm run build"
publish = "build"
# Default cache for all pages - 1 day
[[headers]]
for = "/*"
[headers.values]
Cache-Control = "public, max-age=86400"
# Long cache for static assets - 1 year
[[headers]]
for = "/*.js"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.css"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.png"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.ico"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
# Medium cache for data files - 1 day
[[headers]]
for = "/*.json"
[headers.values]
Cache-Control = "public, max-age=86400"
[[headers]]
for = "/*.gz"
[headers.values]
Cache-Control = "public, max-age=86400"