Skip to content

Derive sw-cache-hash from cookie#8

Merged
roboshyim merged 2 commits into
masterfrom
fix/sw-cache-hash-cookie
Jan 31, 2026
Merged

Derive sw-cache-hash from cookie#8
roboshyim merged 2 commits into
masterfrom
fix/sw-cache-hash-cookie

Conversation

@roboshyim

@roboshyim roboshyim commented Jan 31, 2026

Copy link
Copy Markdown
Owner

Implements Shopware VCL parity: if the sw-cache-hash header is missing, set it from the sw-cache-hash cookie (header still wins). This fixes /widgets/checkout/info behavior when clients only send cookies.

Adds unit tests for the normalization.

Closes #4.

@roboshyim roboshyim force-pushed the fix/sw-cache-hash-cookie branch from b361b93 to 861c7d5 Compare January 31, 2026 10:14
@roboshyim roboshyim merged commit b3298f4 into master Jan 31, 2026
2 checks passed
@roboshyim roboshyim deleted the fix/sw-cache-hash-cookie branch January 31, 2026 10:14
This was referenced Jan 31, 2026
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.

Request normalization parity: derive sw-cache-hash from cookie

1 participant