From d4b1a06bd0d802405d3bc6ec280a05f2f2de3550 Mon Sep 17 00:00:00 2001 From: webfussel Date: Sun, 2 Feb 2025 00:52:18 +0100 Subject: [PATCH] FIX: firebase cache Better caching policies --- firebase.json | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/firebase.json b/firebase.json index 4c9bf7f..9330504 100644 --- a/firebase.json +++ b/firebase.json @@ -1,22 +1,10 @@ { "hosting": { "headers": [{ - "source" : "**/*.@(eot|otf|ttf|ttc|woff|font.css)", - "headers" : [ { - "key" : "Access-Control-Allow-Origin", - "value" : "*" - } ] - }, { - "source" : "**/*.@(js|css)", + "source" : "**/*.@(js|css|jpg|jpeg|gif|png|svg|webp|woff2)", "headers" : [ { "key" : "Cache-Control", - "value" : "max-age=604800" - } ] - }, { - "source" : "**/*.@(jpg|jpeg|gif|png|svg)", - "headers" : [ { - "key" : "Cache-Control", - "value" : "max-age=604800" + "value" : "max-age=31536000" } ] }], "public": ".output/public",