Skip to content

Commit 2bac7ad

Browse files
committed
readme: Adjust cache value in example
Close #52
1 parent 2b0aec3 commit 2bac7ad

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ Example:
114114
```yaml
115115
routes:
116116
- route: "^.+\\.(js|css|svg|ttf)$"
117-
# cache static assets for 20 years
117+
# cache static assets for 1 year.
118118
headers:
119-
Cache-Control: "max-age=630720000, no-transform, public"
119+
Cache-Control: "max-age=31536000, no-transform, public"
120120
gzip: true
121121
- route: "^.+\\.(png|jpg)$"
122122
headers:
123-
Cache-Control: "max-age=630720000, no-transform, public"
123+
Cache-Control: "max-age=31536000, no-transform, public"
124124
gzip: false
125125
- route: "^.+\\.(html|xml|json)$"
126126
gzip: true

0 commit comments

Comments
 (0)