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,
|
"etag": true,
|
||||||
"headers": [
|
"headers": [
|
||||||
{
|
{
|
||||||
"source" : "**/*.@(jpg|jpeg|gif|png|webp|svg)",
|
"source" : "**/*.html",
|
||||||
"headers" : [{
|
"headers" : [{
|
||||||
"key" : "Cache-Control",
|
"key" : "Cache-Control",
|
||||||
"value" : "no-cache"
|
"value" : "no-cache"
|
||||||
}]
|
}]
|
||||||
}, {
|
},
|
||||||
"source" : "404.html",
|
{
|
||||||
|
"source" : "**/*.css",
|
||||||
"headers" : [{
|
"headers" : [{
|
||||||
"key" : "Cache-Control",
|
"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