Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .changeset/calm-rivers-flow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/middleware-cache-handler.md

This file was deleted.

16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @web-widget/shared-cache

## 1.9.0

### Minor Changes

- e7a9731: Fix 304 revalidation persistence so background revalidation with `304 Not Modified` stores the revalidated policy instead of rebuilding from stale response headers (restores fresh `HIT` on subsequent requests).

Add `UPDATING` cache status for `stale-while-revalidate` (aligns with Cloudflare CDN semantics; `STALE` is reserved for `stale-if-error`).

Return `304 Not Modified` from `Cache.match()` when conditional request headers (`If-None-Match`, `If-Modified-Since`) match a fresh cached entry.

Percent-encode `x-cache-key` header values so cache keys with control characters or non-Latin-1 Unicode are valid HTTP header field values.

Strip persisted `Age` from stored policy metadata on read for compatibility with entries written before the revalidation fix.

- 2aeb468: Add middleware-friendly `resolveWithCache` and `createCacheHandler` APIs with phase-aware origin error handling.

## 1.8.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web-widget/shared-cache",
"version": "1.8.0",
"version": "1.9.0",
"description": "Standards-compliant HTTP cache implementation for server-side JavaScript with RFC 7234 compliance and cross-runtime support",
"keywords": [
"cache",
Expand Down