Migrating to node-serve (@warren-bank/serve)

This commit is contained in:
Firq 2023-07-27 23:27:56 +02:00
parent 9f194cc052
commit 2c9c2854be
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
2 changed files with 22 additions and 16 deletions

View file

@ -1,14 +1,20 @@
{
"directoryListing": ["/!assets/**"],
"cleanUrls": true,
"directoryListing": false,
"etag": true,
"headers": [
{
"source": "**/*.@(jpg|jpeg|gif|png|webp)",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache"
}
]
"source" : "**/*.@(jpg|jpeg|gif|png|webp|svg)",
"headers" : [{
"key" : "Cache-Control",
"value" : "no-cache"
}]
}, {
"source" : "404.html",
"headers" : [{
"key" : "Cache-Control",
"value" : "no-cache"
}]
}
]
}