Add cache control headers.
All checks were successful
semver Build semver has succeeded
build-homepage Build build-homepage has succeeded

This commit is contained in:
Tom Alexander 2023-07-11 01:01:25 -04:00
parent 3923be76fb
commit e5fa624aab
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -10,3 +10,7 @@ add_header X-Content-Type-Options "nosniff" always;
# Disallow the site to be rendered within a frame (clickjacking
# protection)
add_header X-Frame-Options "DENY" always;
# Surrogate Control sets CDN caching behavior.
add_header Surrogate-Control "public, max-age=86400";
add_header Cache-Control "public, max-age=120";