Skip to content

chore(site): enable Rust compiler and content caching#484

Merged
p-linnane merged 1 commit into
mainfrom
chore/astro-rust-compiler-content-cache
May 26, 2026
Merged

chore(site): enable Rust compiler and content caching#484
p-linnane merged 1 commit into
mainfrom
chore/astro-rust-compiler-content-cache

Conversation

@p-linnane
Copy link
Copy Markdown
Member

Enables three Astro 6 optimizations recommended in the docs:

  • experimental.rustCompiler — switches .astro compilation to the faster Rust-based compiler (requires @astrojs/compiler-rs).
  • experimental.queuedRendering.contentCache — caches rendered strings across pages, which benefits a site like this where many releases share component table rows.
  • /api/* Cache-Control — adds s-maxage=86400 and stale-while-revalidate=604800 so Cloudflare's edge can serve cached JSON longer while still revalidating in the background.

Enables three Astro 6 optimizations recommended in the docs:

- `experimental.rustCompiler`: switches `.astro` compilation to the
  faster Rust-based compiler (requires @astrojs/compiler-rs).
- `experimental.queuedRendering.contentCache`: caches rendered strings
  across pages, which benefits a site like this where many releases
  share component table rows.
- `/api/*` Cache-Control: adds `s-maxage=86400` and
  `stale-while-revalidate=604800` so Cloudflare's edge can serve
  cached JSON longer while still revalidating in the background.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Patrick Linnane <patrick@linnane.io>
@p-linnane p-linnane merged commit 90296d1 into main May 26, 2026
6 checks passed
@p-linnane p-linnane deleted the chore/astro-rust-compiler-content-cache branch May 26, 2026 22:59
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