Skip to content

Explain how the bar works behind Varnish - #77

Open
GrimLink wants to merge 3 commits into
mainfrom
docs-varnish
Open

GrimLink wants to merge 3 commits into
mainfrom
docs-varnish

Conversation

@GrimLink

@GrimLink GrimLink commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Documents the bar behind Varnish instead of changing how it caches.

In developer mode without a key, Varnish connects from a private address, so every request gets the bar. A page with the bar is no-store, which Magento's VCL turns into a pass, so Varnish caches nothing while the bar is on, and a page it cached before hides the bar.

User guide:

  • New "Behind Varnish" section: recommends switching to Magento's built in full page cache (caching_application 1) while using the bar. It still caches, the bar is injected over cached pages, and the Page cache section reports hits. To test Varnish itself, switch the bar off and Varnish back on.
  • The "No bar behind Varnish" troubleshooting entry no longer claims catalog and CMS pages never show the bar. It points to the new section.

Also moves the misplaced X-Magento-Tags docblock in BarInjector onto refuseSharing().

Replaces #76.

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