Timeline for Magento 2 + Varnish - Somehow creates different cached version for visits with recent browse activity
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 26, 2021 at 8:13 | answer | added | Thijs Feryn | timeline score: 1 | |
Mar 25, 2021 at 11:05 | comment | added | Jason | @ThijsFeryn & @ DanilaVershinin I have edited my post. Included VCL (default magento VCL with custom changes) + screenshots of the headers. The site runs on Apache with Varnish in front of it. And Nginx as SSL reverse proxy in front of Varnish. | |
Mar 25, 2021 at 11:02 | history | edited | Jason | CC BY-SA 4.0 |
Added VCL and screenshots
|
Mar 25, 2021 at 10:58 | comment | added | Jason | @DanilaVershinin My client has a responsive theme, but their former developer added an additional extra lightweight theme for mobile devices. Painful to see, but I'll have to accept it for now. As for the bots... we use Mirasvit Cache Warmer module. It logs all visited pages to a table, and uses the table to warm frequently visited pages. To avoid bots from flooding the table with irrelevant pages, it uses user agents to exclude bot visits from the table. Unfortunately that means a separate cache for bots. | |
Mar 24, 2021 at 7:36 | comment | added | Thijs Feryn |
Please share your VCL file and provide some example HTTP request & response payload. Please include request & response headers. This will help me understand the current behavior and how VCL might be causing unwanted cache variations. Please also check if your Magento setup returns Vary headers.
|
|
Mar 23, 2021 at 18:44 | comment | added | Danila Vershinin | First, why do you want to have separate cache versions for pc/mobile/bot? Nowadays all themes being responsive, there should be no difference. Second, please post your modified VCL. | |
Mar 23, 2021 at 18:08 | history | asked | Jason | CC BY-SA 4.0 |