@astrojs/cloudflare@14.2.5
📦 astroView on GitHub →
✨ 1 features🔧 1 symbols
Summary
This patch updates the default Cloudflare compatibility date and requires a newer version of Wrangler. It also enhances cache metadata for Worker responses with version information.
✨ New Features
- Adds the Worker version to the cache metadata of cached responses when the `CF_VERSION_METADATA` binding is configured. Responses carry an `astro-version:<id>` cache tag for version-specific purging, and responses that already send `Last-Modified` get a weak `ETag` that folds the version in. Conditional revalidation then returns fresh content after a deploy that changes rendered output but not content — most commonly the hashed asset URLs in server-rendered HTML. Without the binding, nothing changes.