:80 { root * /srv file_server encode gzip zstd # Hashed assets: cache forever (filename changes on content change) @hashed path /_astro/* header @hashed Cache-Control "public, max-age=31536000, immutable" # Everything else (HTML pages): always revalidate @unhashed not path /_astro/* header @unhashed Cache-Control "no-cache" try_files {path} {path}/ /404.html }