Files
gitea-docs/static
Lunny Xiao ae7956cc42 Add Cloudflare Pages cache headers for static assets
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.
2026-07-25 15:14:23 -07:00
..
2024-06-06 22:59:23 +08:00
2023-02-02 23:30:20 -05:00
2024-06-06 22:59:23 +08:00
2024-06-06 22:59:23 +08:00
2024-06-06 22:59:23 +08:00
2024-06-06 22:59:23 +08:00
2024-06-06 22:59:23 +08:00
2025-11-23 18:43:58 +00:00
2025-11-23 18:43:58 +00:00
2025-11-23 18:43:58 +00:00
2026-04-09 19:27:32 +00:00
2026-06-21 22:28:28 +00:00
2026-07-14 20:06:28 +00:00