testing new caching settings
This commit is contained in:
parent
9ec6d4a83b
commit
bbb6cc11c2
1 changed files with 12 additions and 4 deletions
16
serve.json
16
serve.json
|
@ -4,16 +4,24 @@
|
|||
"etag": true,
|
||||
"headers": [
|
||||
{
|
||||
"source" : "**/*.@(jpg|jpeg|gif|png|webp|svg)",
|
||||
"source" : "**/*.html",
|
||||
"headers" : [{
|
||||
"key" : "Cache-Control",
|
||||
"value" : "no-cache"
|
||||
}]
|
||||
}, {
|
||||
"source" : "404.html",
|
||||
},
|
||||
{
|
||||
"source" : "**/*.css",
|
||||
"headers" : [{
|
||||
"key" : "Cache-Control",
|
||||
"value" : "no-cache"
|
||||
"value" : "max-age=86400"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"source" : "**/*.@(jpg|jpeg|gif|png|webp|svg)",
|
||||
"headers" : [{
|
||||
"key" : "Cache-Control",
|
||||
"value" : "max-age=86400"
|
||||
}]
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue