From bbb6cc11c2f0f41fa1c094dfd6195db853b6c11a Mon Sep 17 00:00:00 2001 From: Firq Date: Sat, 29 Jul 2023 13:55:48 +0200 Subject: [PATCH] testing new caching settings --- serve.json | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/serve.json b/serve.json index 3eba146..6f9caef 100644 --- a/serve.json +++ b/serve.json @@ -4,16 +4,24 @@ "etag": true, "headers": [ { - "source" : "**/*.@(jpg|jpeg|gif|png|webp|svg)", + "source" : "**/*.html", "headers" : [{ "key" : "Cache-Control", "value" : "no-cache" }] - }, { - "source" : "404.html", + }, + { + "source" : "**/*.css", "headers" : [{ "key" : "Cache-Control", - "value" : "no-cache" + "value" : "max-age=86400" + }] + }, + { + "source" : "**/*.@(jpg|jpeg|gif|png|webp|svg)", + "headers" : [{ + "key" : "Cache-Control", + "value" : "max-age=86400" }] } ]