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
2023-07-28 05:52:35 +00:00
2026-02-03 03:29:59 +00:00
2026-02-03 03:29:59 +00:00
2023-10-03 17:13:46 +00:00

Gitea Docs badge

How to build

make clean
make prepare-docs
make build

Development

make clean
make prepare-docs
make serve

Test en version

pnpm run start
Description
No description provided
Readme Apache-2.0 16 MiB
Languages
MDX 62.5%
JavaScript 22.8%
CSS 11.7%
Shell 2%
Makefile 1%