This discusses an issue in Magento when Varnish is active, that on certain pages (mostly containing /customer in the url) you'll see the top navigation missing and an esi:include tag being included in the html. This is related to Varnish not understanding certain compression algorithms, like Brotli.
Note, we're only talking about GET requests here, not about POST requests.
- Magento has a way to say if a page is cacheable or not. A page is cacheable by default, unless it mentions
cacheable="false"in one of its blocks, in its layout xml file. - Based on if a page is cacheable or not, Magento will send different caching HTTP headers back
- Just for information, following pages are considered cacheable (unless the old skool captcha module is active, which makes most of these uncacheable):
customer/account/confirmationcustomer/account/create
customer/account/forgotpassword