Skip to content

Warn that prices vary by cookie behind a full page cache - #20

Open
loevgaard wants to merge 1 commit into
docs/vat-context-prioritiesfrom
docs/full-page-cache-caveat
Open

loevgaard wants to merge 1 commit into
docs/vat-context-prioritiesfrom
docs/full-page-cache-caveat

Conversation

@loevgaard

Copy link
Copy Markdown
Member

Installing this plugin changes the caching characteristics of every page that renders a price: the output now depends on a cookie.

A shop already sitting behind Varnish, a CDN, or Symfony's HTTP cache will keep serving whichever VAT variant happened to be cached first, to everyone. It is worth calling out explicitly because of how it presents — not as "the toggle is broken", but as wrong prices, which is the kind of bug that gets reported by a customer rather than caught in testing.

Adds a short Caching section naming the cookie and pointing at varying on it or excluding price pages.

No code changes.

Stacked on #19 (both touch README.md). Review/merge that one first; this PR retargets to master automatically once it lands.

Addresses the third security/ops item in #5.

https://claude.ai/code/session_01P9NzuVPQGvaVR97HZFq98a

Installing the plugin makes every rendered price depend on a cookie. A shop
that already sits behind Varnish or a CDN will keep serving whichever VAT
variant was cached first, to everyone, and the mismatch shows up as wrong
prices rather than as a missing toggle.

Claude-Session: https://claude.ai/code/session_01P9NzuVPQGvaVR97HZFq98a
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