Skip to content

fix: evict hashed fetch cache entries after mutations - #17146

Merged
Rich-Harris merged 1 commit into
version-3from
triage/kit-17144-evict-hashed-cache
Sep 18, 2026
Merged

Rich-Harris merged 1 commit into
version-3from
triage/kit-17144-evict-hashed-cache

Conversation

@svelte-triage-bot

Copy link
Copy Markdown
Contributor

Fixes #17144

Summary

  • evict every client fetch-cache selector for a mutated URL, including selectors with request-data hashes
  • preserve URL normalization used by the existing non-GET invalidation path
  • add a regression covering two cached GET responses distinguished by custom headers, followed by a POST mutation

Testing

  • focused Playwright regression in build and DEV modes
  • related client fetch-cache Playwright tests (8 passed)
  • pnpm -F @sveltejs/kit test:unit
  • pnpm lint
  • pnpm check
  • pnpm -F @sveltejs/kit prepublishOnly
  • pnpm format

The sandbox lacked the stable Chrome channel selected by the repository config, so Playwright verification used a temporary uncommitted config pointing to the preinstalled Playwright Chromium binary.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mutating fetches do not evict hashed cached responses

1 participant