From 564f1defdf008d7e34ec70788344afa841554916 Mon Sep 17 00:00:00 2001 From: Joe Ma Date: Sat, 20 Aug 2022 01:40:15 +0800 Subject: [PATCH] Add cache-control header to /favicon.ico response --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index fe53aa0..9ce1f09 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 }) }