Skip to content

Fix Cloudflare build and cache Astro assets - #20

Closed
Elvis020 wants to merge 1 commit into
mainfrom
codex/fix-cloudflare-build-cache
Closed

Fix Cloudflare build and cache Astro assets#20
Elvis020 wants to merge 1 commit into
mainfrom
codex/fix-cloudflare-build-cache

Conversation

@Elvis020

@Elvis020 Elvis020 commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fix Cloudflare's dependency installation and improve repeat-load caching for generated Astro assets.

Changes

  • Declare the repository root as the pnpm workspace package.
  • Cache fingerprinted /_astro/* assets for one year with immutable semantics.
  • Keep HTML on Cloudflare's default revalidation and ETag policy.

Verification

  • Frozen install with Cloudflare's pnpm 10.11.1
  • Frozen install with pnpm 10.24.0
  • pnpm build: 9 meetups and 11 pages
  • Wrangler deployment dry run

- Declare the repository root as the sole pnpm workspace package so Cloudflare Workers Builds can install dependencies with pnpm 10.11.1.
- Cache Astro's fingerprinted assets for one year with immutable browser semantics while leaving HTML on Cloudflare's default revalidation policy.

Verification: clean frozen installs with pnpm 10.11.1 and 10.24.0; production build loaded 9 live meetups and generated 11 pages; generated dist/_headers matched the source rule; Wrangler 4.115.0 deployment dry run passed; git diff --check passed.
@Elvis020 Elvis020 closed this Aug 1, 2026
@Elvis020
Elvis020 deleted the codex/fix-cloudflare-build-cache branch August 1, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant