Skip to content

Add docs for route caching CDN providers#13937

Merged
ascorbic merged 3 commits into
armand/stable-route-cachingfrom
route-caching-cdn
Jun 19, 2026
Merged

Add docs for route caching CDN providers#13937
ascorbic merged 3 commits into
armand/stable-route-cachingfrom
route-caching-cdn

Conversation

@ascorbic

Copy link
Copy Markdown
Contributor

Description (required)

Adds docs for the three new experimental CDN cache providers. I've added the docs for all providers to the existing experiemntal flag page, rather than the adapter pages.

Related issues & labels (optional)

Code PR: withastro/astro#16335

  • Closes #
  • Suggested label:

For Astro version: 6.4. See astro PR withastro/astro#16335.

@netlify

netlify Bot commented May 26, 2026

Copy link
Copy Markdown

Deploy Preview for astro-docs-2 ready!

Name Link
🔨 Latest commit 88d7fe8
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/6a1580d867af650008033489
😎 Deploy Preview https://deploy-preview-13937--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@ascorbic ascorbic added this to the 6.4 milestone May 26, 2026
Comment thread src/content/docs/en/reference/experimental-flags/route-caching.mdx Outdated
@ascorbic ascorbic added the merge-on-release Don't merge this before the feature is released! (MQ=approved but WAIT for feature release!) label May 26, 2026

@ArmandPhilippot ArmandPhilippot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Overall, this LGTM. I left a few comments/suggestions, but nothing really blocking. They're mostly nitpicking either to improve the readability (shorter sentences) or because I wonder if we are documenting implementation details...

Comment thread src/content/docs/en/reference/experimental-flags/route-caching.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/route-caching.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/route-caching.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/route-caching.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/route-caching.mdx Outdated
@ascorbic ascorbic removed this from the 6.4 milestone May 26, 2026
- Document the Netlify, Vercel, and Cloudflare CDN cache providers (manual opt-in; Cloudflare private beta) in the caching guide
- Add an astro/cache/provider-utils reference section and the setHeaders(options, request) signature
- Use file-based routing patterns ([...rest]) instead of unsupported globs
@ascorbic ascorbic force-pushed the route-caching-cdn branch from 88d7fe8 to 2c2d4ea Compare June 19, 2026 14:26
@github-actions github-actions Bot added the i18n Anything to do with internationalization & translation efforts - ask @YanThomas for help! label Jun 19, 2026
@ascorbic ascorbic changed the base branch from main to armand/stable-route-caching June 19, 2026 14:26
@astrobot-houston

astrobot-houston commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/guides/caching.mdx Localization changed, will be marked as complete.
en/reference/cache-provider-reference.mdx Localization changed, will be marked as complete.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown

Preview deployment

✅ Deployment complete!

@ascorbic ascorbic requested a review from ArmandPhilippot June 19, 2026 14:41
@ascorbic

Copy link
Copy Markdown
Contributor Author

@ArmandPhilippot I've stacked this on your PR and could just merge it in to that if it's easier

@ArmandPhilippot ArmandPhilippot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have two nits (adding links could help users), but this LGTM! Thanks!

While reviewing, I noticed we don't have any code snippets in the Astro.cache reference... Do you want to add some? Otherwise, feel free to merge into my PR and I'll see to add some based on the guide and your changesets!

Comment thread src/content/docs/en/guides/caching.mdx Outdated
Comment thread src/content/docs/en/reference/cache-provider-reference.mdx Outdated
<Since pkg="@astrojs/cloudflare" v="14.0.0" />
</p>

:::caution[Private beta]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know when this will leave the private beta? Is it simply an update to the Cloudflare package, or does it require a change to Astro's code? What I mean is, if it's just a package update (ie. renovate...), we might forget to update the documentation. So, I just want to know if this is something we need to monitor or not.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a Cloudflare platform thing, out of our hands. I'm monitoring it and will update the docs.

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
@ascorbic

Copy link
Copy Markdown
Contributor Author

Thanks, @ArmandPhilippot. I've applied your suggestions and will merge. I'll follow up by pushing code snippets to your branch.

@ascorbic ascorbic merged commit bf6f22e into armand/stable-route-caching Jun 19, 2026
9 checks passed
@ascorbic ascorbic deleted the route-caching-cdn branch June 19, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

i18n Anything to do with internationalization & translation efforts - ask @YanThomas for help! merge-on-release Don't merge this before the feature is released! (MQ=approved but WAIT for feature release!)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants