From f1e5dbe5b5e3174ae0cebf3ed2425e7dc88dcadc Mon Sep 17 00:00:00 2001 From: ShiningRay Date: Sat, 12 Mar 2022 11:00:23 +0800 Subject: [PATCH] optimize cache-control header --- static.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static.json b/static.json index 8f813298..2b7fffb1 100644 --- a/static.json +++ b/static.json @@ -10,7 +10,7 @@ }, "headers": { "/": { - "Cache-Control": "no-cache,must-revalidate,proxy-revalidate,max-age=300" + "Cache-Control": "no-cache,must-revalidate,proxy-revalidate,max-age=300,stale-while-revalidate=600,stale-if-error=600" }, "/static/**": { "Cache-Control": "public, max-age=512000"