-
Notifications
You must be signed in to change notification settings - Fork 0
/
.s3deploy.yml
53 lines (53 loc) · 1.62 KB
/
.s3deploy.yml
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
routes:
- route: "^.+\\.(js|css|wasm)$"
# cache for 1 year (unit is seconds)
headers:
Cache-Control: "max-age=31536000, no-transform, public"
Vary: "Accept-Encoding"
gzip: true
- route: "^.+\\.(png|jpg|gif|bmp|jpeg|webp)$"
# cache for 1 month
headers:
Cache-Control: "max-age=2628000, no-transform, public"
Vary: "Accept-Encoding"
gzip: false
- route: "^.+\\.(eot|otf|ttf)$"
# cache for 1 month
headers:
Cache-Control: "max-age=2628000, no-transform, public"
Vary: "Accept-Encoding"
gzip: true
- route: "^.+\\.(woff|woff2)$"
# cache for 1 month
headers:
Cache-Control: "max-age=2628000, no-transform, public"
Vary: "Accept-Encoding"
gzip: false
- route: "^.+\\.(ogg|webm|mp4)$"
# cache for 1 month
headers:
Cache-Control: "max-age=2628000, no-transform, public"
Vary: "Accept-Encoding"
gzip: false
- route: "^.+\\.(svg)$"
# cache for 1 month
headers:
Cache-Control: "max-age=2628000, no-transform, public"
Vary: "Accept-Encoding"
gzip: true
- route: "^.+\\.(ico)$"
# cache for 1 week
headers:
Cache-Control: "max-age=604800, no-transform, public"
Vary: "Accept-Encoding"
gzip: false
- route: "^.+\\.(rss|rdf|atom)$"
# cache for 1 hour
headers:
Cache-Control: "max-age=3600, no-transform, public"
Vary: "Accept-Encoding"
gzip: true
- route: "^.+\\.(html|xml|json)$"
headers:
Vary: "Accept-Encoding"
gzip: true