mcnoaa-tides/docs/Caddyfile.prod
Ryan Malloy 30b2ace966 Fix Lighthouse audit findings: contrast, cache, robots.txt
- Card link color bumped to accent-high for WCAG AA contrast ratio
- Caddyfile: immutable cache headers for hashed _astro/* assets
- robots.txt: move LLMs-Txt to comments (not a standard directive)
2026-02-24 13:36:43 -07:00

18 lines
387 B
Caddyfile

:4321 {
encode gzip
# Hashed assets — immutable, cache forever
@hashed path /_astro/*
header @hashed Cache-Control "public, max-age=31536000, immutable"
# OG images — content-hashed filenames aren't used, cache 1 day
@og path /og/*
header @og Cache-Control "public, max-age=86400"
handle {
root * /usr/share/caddy
try_files {path} {path}/index.html
file_server
}
}