note: die Zusammenfassung und die Release Notes sind auf Englisch
note: keine Zusammenfassung für dieses ältere Release
Wir fassen die neueren Releases zusammen. Die originalen Release Notes dieser Version stehen hier unten.
release-notesgithub.com/withastro/astro · 40 Zeilen
- ### Minor Changes
- - [#17116](https://github.com/withastro/astro/pull/17116) [`f95e58e`](https://github.com/withastro/astro/commit/f95e58eaa6a6d7ac02f84193b485471f0cd14de6) Thanks [@ascorbic](https://github.com/ascorbic)! - Stabilizes route caching, removing the `experimental.cache` and `experimental.routeRules` flags and replacing them with the top-level `cache` and `routeRules` configuration options.
- Route caching, introduced experimentally in v6.0.0, is now stable. It gives you a platform-agnostic way to cache responses from [on-demand rendered](https://docs.astro.build/en/guides/on-demand-rendering/) pages and endpoints, based on standard HTTP caching semantics.
- Update your config to move `cache` and `routeRules` out of the `experimental` block:
- ```diff
- // astro.config.mjs
- import { defineConfig, memoryCache } from 'astro/config';
- export default defineConfig({
- - experimental: {
- - cache: {
- - provider: memoryCache(),
- - },
- - routeRules: {
- - '/blog/[...path]': { maxAge: 300, swr: 60 },
- - },
- - },
- + cache: {
- + provider: memoryCache(),
- + },
- + routeRules: {
- + '/blog/[...path]': { maxAge: 300, swr: 60 },
- + },
- });
- ```
- Set caching directives in your routes with `Astro.cache` (in `.astro` pages) or `context.cache` (in API routes and middleware), and Astro translates them into the appropriate headers or runtime behavior depending on your configured cache provider. You can also define cache rules for routes declaratively in your config using `routeRules`, without modifying route code.
- See the [route caching guide](https://docs.astro.build/en/guides/caching/) for more information.
- ### Patch Changes
- - [#17090](https://github.com/withastro/astro/pull/17090) [`3cf76c0`](https://github.com/withastro/astro/commit/3cf76c035eef5954637e78015be9c20d0129599a) Thanks [@matthewp](https://github.com/matthewp)! - Fixes Vite and Rolldown build warnings
- - Updated dependencies \[[`7e7ab87`](https://github.com/withastro/astro/commit/7e7ab8775f1c70e00e30db9d3c4796246eaf1c5f)]:
- - @astrojs/markdown-satteri@0.3.1-beta.2