mirror of
https://github.com/rikkaneko/paste.git
synced 2025-08-05 05:30:09 +01:00
Add cache-control header to /favicon.ico response
This commit is contained in:
parent
78e6707b4b
commit
564f1defdf
1 changed files with 3 additions and 0 deletions
|
@ -99,6 +99,9 @@ export default {
|
||||||
// Special path
|
// Special path
|
||||||
if (path === "/favicon.ico" && method == "GET") {
|
if (path === "/favicon.ico" && method == "GET") {
|
||||||
return new Response(null, {
|
return new Response(null, {
|
||||||
|
headers: {
|
||||||
|
"cache-control": "public, max-age=172800",
|
||||||
|
},
|
||||||
status: 404
|
status: 404
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue