Skip to content

feat: expose debug cache key header#67

Merged
aui merged 1 commit into
mainfrom
feat/debug-cache-key-header
Jun 8, 2026
Merged

feat: expose debug cache key header#67
aui merged 1 commit into
mainfrom
feat/debug-cache-key-header

Conversation

@aui

@aui aui commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add debugCacheKey request option to expose computed cache key through x-cache-key
  • apply response vary fields to debug cache key so the header reflects the effective storage key
  • unify cache status constant naming to CACHE_STATUS_HEADER_NAME, export CACHE_KEY_HEADER_NAME, and add a changeset

Add debugCacheKey request option to expose the effective cache key via response header for diagnostics, and unify exported cache header constants.

Co-authored-by: Cursor <cursoragent@cursor.com>
@changeset-bot

changeset-bot Bot commented Jun 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d10c4c5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@web-widget/shared-cache Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.68293% with 9 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/fetch.ts 92.22% 7 Missing ⚠️
src/index.ts 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@aui aui merged commit db9675c into main Jun 8, 2026
3 checks passed
@aui aui deleted the feat/debug-cache-key-header branch June 8, 2026 04:34
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.

1 participant