diff --git a/Caddyfile b/Caddyfile index 918d68e..c273231 100755 --- a/Caddyfile +++ b/Caddyfile @@ -34,6 +34,11 @@ portfolio.lucasroyer.fr { ttl 24h stale 12h } + header { + # s-maxage=86400 : proxy keep html in RAM for 24h + # max-age=0 : client browser check every time with etag + # must-revalidate : ask server if it is steel up to date + Cache-Control "public, s-maxage=86400, max-age=0, must-revalidate" # Security header {