From a0859abf98842c530e977d081404eacce8ba9336 Mon Sep 17 00:00:00 2001 From: hay-kot Date: Sun, 23 May 2021 15:45:00 -0700 Subject: [PATCH] more aggressive caching --- Caddyfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Caddyfile b/Caddyfile index 202d5b13c..ee380a944 100644 --- a/Caddyfile +++ b/Caddyfile @@ -8,7 +8,7 @@ @static { file - path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.webp + path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.woff2 *.webp } encode gzip zstd @@ -16,7 +16,7 @@ # Handles Recipe Images / Assets handle_path /api/media/recipes/* { - header @static Cache-Control max-age=5184000 + header @static Cache-Control max-age=31536000 root * /app/data/recipes/ file_server } @@ -26,6 +26,7 @@ } handle { + header @static Cache-Control max-age=31536000 root * /app/dist try_files {path}.html {path} /index.html file_server