Add cache-control header to /favicon.ico response

This commit is contained in:
Joe Ma 2022-08-20 01:40:15 +08:00
parent 78e6707b4b
commit 564f1defdf
No known key found for this signature in database
GPG key ID: 7A0ECF5F5EDC587F

View file

@ -99,6 +99,9 @@ export default {
// Special path
if (path === "/favicon.ico" && method == "GET") {
return new Response(null, {
headers: {
"cache-control": "public, max-age=172800",
},
status: 404
})
}