mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-08 00:14:07 +08:00
updated cache headers
This commit is contained in:
parent
4f70084e67
commit
f2d7acd7f0
1 changed files with 19 additions and 1 deletions
|
|
@ -38,7 +38,25 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"source": "/*.html",
|
||||
"source": "**/*.@(jpg|jpeg|gif|png|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css)",
|
||||
"headers": [
|
||||
{
|
||||
"key": "Cache-Control",
|
||||
"value": "max-age=604800"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"source": "/**",
|
||||
"headers": [
|
||||
{
|
||||
"key": "Cache-Control",
|
||||
"value": "no-cache, no-store, must-revalidate"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"source": "/service-worker.js",
|
||||
"headers": [
|
||||
{
|
||||
"key": "Cache-Control",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue