mirror of
https://gitea.com/gitea/docs.git
synced 2026-07-27 10:07:29 +00:00
ae7956cc425e105925b516343adbf97115f7227c
Cloudflare Pages currently serves all responses with the default 'Cache-Control: public, max-age=0, must-revalidate', including content-hashed files under /assets/* produced by the Docusaurus build. Add a static/_headers file so Cloudflare Pages applies long-lived immutable caching to /assets/* (safe because the filename changes whenever the content changes) and a conservative one-day max-age to /img/* and /images/*, which keep stable filenames and can be replaced in place. Also exclude _headers from the aws s3 sync step in the publish workflow, since it is only meaningful for the Cloudflare deployment and would otherwise be uploaded to S3/CloudFront and become publicly accessible at /_headers there.
Description
Languages
MDX
62.5%
JavaScript
22.8%
CSS
11.7%
Shell
2%
Makefile
1%