Conversation
✅ Deploy Preview for astro-docs-2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
sarah11918
left a comment
There was a problem hiding this comment.
Wow, @ascorbic ! Only a very few small comments from me (most of them just adding specific link anchors that were probably too annoying for you to hunt down in the moment).
I think this one just needs to go straight to @yanthomasdev , for whom I've left all the commas! 🎉
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
|
|
||
| Enables a platform-agnostic API for caching responses from [on-demand rendered](/en/guides/on-demand-rendering/) pages and endpoints. Cache directives set in your routes are translated into the appropriate headers or runtime behavior depending on your configured cache provider. | ||
|
|
||
| Route caching builds on standard [HTTP caching semantics](https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching) including `max-age` and [`stale-while-revalidate`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#stale-while-revalidate), with support for tag-based and path-based invalidation, config-level route rules, and pluggable cache providers that adapters can set automatically. |
There was a problem hiding this comment.
I'm wondering whether somewhere around here in the intro, it's worth comparing this feature to ISR? (Astro's solution to X, sometimes known as ISR; Astro's answer to what's normally solved with ISR; While other frameworks attempt to do X with ISR, Astro's route caching accomplishes X+...)
Totally not necessary of course, just thinking how we could have an SEO hit for Astro + ISR and also be able to point people somewhere when they say "what about ISR?"
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
ArmandPhilippot
left a comment
There was a problem hiding this comment.
The feature looks great! I left a few suggestions, some are nitpickings and others are for consistency with the rest of the docs (e.g. use of tables which don't look very good on small devices).
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com> Co-authored-by: Armand Philippot <git@armand.philippot.eu> Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
src/content/docs/en/reference/experimental-flags/route-caching.mdx
Outdated
Show resolved
Hide resolved
….mdx Co-authored-by: Armand Philippot <git@armand.philippot.eu>
| title: Experimental Route Caching | ||
| sidebar: | ||
| label: Route Caching |
There was a problem hiding this comment.
| title: Experimental Route Caching | |
| sidebar: | |
| label: Route Caching | |
| title: Experimental route caching | |
| sidebar: | |
| label: Route caching |
Description (required)
Adds docs for the experimental route caching flag. See the code PR: withastro/astro#15579 and the RFC: withastro/roadmap#1245 for more details
Also updates the live collections docs to refer to route caching in the sections about cache hints.
Related issues & labels (optional)