From 6f145aead6c02893fc0df1147f657097fcdff4f2 Mon Sep 17 00:00:00 2001 From: schmelczerandras Date: Thu, 24 Sep 2020 14:34:27 +0200 Subject: [PATCH] Add cache control --- firebase.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/firebase.json b/firebase.json index da6e7a6..a3eaad6 100644 --- a/firebase.json +++ b/firebase.json @@ -15,6 +15,17 @@ "destination": "https://fizika.schmelczer.dev", "type": 301 } + ], + "headers": [ + { + "source": "**/*.@(jpg|jpeg|gif|png|webm|mp4)", + "headers": [ + { + "key": "Cache-Control", + "value": "max-age=31536000" + } + ] + } ] } }