Skip to content

Commit

Permalink
readme: Adjust cache value in example
Browse files Browse the repository at this point in the history
Close #52
  • Loading branch information
bep committed Oct 11, 2022
1 parent 2b0aec3 commit 2bac7ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ Example:
```yaml
routes:
- route: "^.+\\.(js|css|svg|ttf)$"
# cache static assets for 20 years
# cache static assets for 1 year.
headers:
Cache-Control: "max-age=630720000, no-transform, public"
Cache-Control: "max-age=31536000, no-transform, public"
gzip: true
- route: "^.+\\.(png|jpg)$"
headers:
Cache-Control: "max-age=630720000, no-transform, public"
Cache-Control: "max-age=31536000, no-transform, public"
gzip: false
- route: "^.+\\.(html|xml|json)$"
gzip: true
Expand Down

0 comments on commit 2bac7ad

Please sign in to comment.