-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
39 lines (32 loc) · 916 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
35
36
37
38
39
[build]
command = "yarn build"
publish = "./build"
functions = "./functions"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
[[headers]]
for = "/*.js" # Cache JS files for long period
[headers.values]
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "/*.css" # Cache CSS files for long period
[headers.values]
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "/*.jpg" # Cache JPEG files for long period
[headers.values]
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "/*.png" # Cache PNG files for long period
[headers.values]
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "/*.webp" # Cache WEBP files for long period
[headers.values]
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "/sw.js" # Cache Service Worker file
[headers.values]
Cache-Control = "public, max-age=0"