Leveraging Nginx reverse proxy and Cloudflare cache with OpenMage #5106
Unanswered
kamzata
asked this question in
Questions & Answers
Replies: 2 comments 1 reply
-
|
To fix the minicart you will need hole punching. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
You might look at https://github.com/colinmollenhour/Cm_Diehard - it specifically supports using a CDN with revalidation and hole punching. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My OpenMage installation is served behind Nginx reverse proxy and Cloudflare CDN. I'd like to leverage both Nginx and Cloudflare cache but I noticed all the pages contain these headers:
pragma: no-cachecache-control: no-store, no-cache, must-revalidatewhich prevents all the pages to be cached.
Here are all headers:
However, I'm using RWD theme and, if I disable those headers the minicart on the header (e.g.) is cached too providing the same content for all users.
Any hint?
Beta Was this translation helpful? Give feedback.
All reactions