From e91185ca596497f61193ca0255ad5035280fc111 Mon Sep 17 00:00:00 2001 From: hay-kot Date: Sun, 23 May 2021 15:27:58 -0700 Subject: [PATCH] Caddyfile Caching header --- Caddyfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Caddyfile b/Caddyfile index 73fb21ab3..202d5b13c 100644 --- a/Caddyfile +++ b/Caddyfile @@ -5,12 +5,18 @@ :80 { @proxied path /api/* /docs /openapi.json + + @static { + file + path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.webp + } encode gzip zstd uri strip_suffix / # Handles Recipe Images / Assets handle_path /api/media/recipes/* { + header @static Cache-Control max-age=5184000 root * /app/data/recipes/ file_server }