Plugin Support
qtwrk
(@qtwrk)
When you visit the URL you’ll be redirected to the homepage and asked to enter an address. Please enter “123 Avenue Laval, Laval, QC, Canada” and click the “Confirmer l’adresse” button. You will then be redirected to the page in question.
Plugin Support
qtwrk
(@qtwrk)
it’s because you have a cookie sbjs_session
, which is changing in every request, , when you privitize cache , it also checks for cookies value , so when cookie changes, it misses
Thank you. I’ve disabled that cookie but the problem persists.
I notice that there are some google analytics cookies that change on every page load – this is probably causing the same issue. Is it possible that private cached URIs is not compatible with GA?
Plugin Support
qtwrk
(@qtwrk)
yes, when you privitize cache , cookies are taken into calculation as well
and may I know why do you want to private cache this page?
1) User visits homepage and enters and confirms address
2) A cookie is set with an ID associated with the territory they belong to
3) Certain pages display different content based on the territory, so I’m using the Vary cookie feature to cache separate pages depending on the user’s territory.
4) We allow those pages to be open to bots for scraping previews.
5) If I clear the cache and a bot visits one of those pages without the cookie assigned, a version of the page is publicly cached.
6) A user can then visit the page and view the cached version without entering an address.
I was hoping that even if publicly caching is not an option that private caching could be implemented.
-
This reply was modified 2 months, 1 week ago by
MarcGuay.
-
This reply was modified 2 months, 1 week ago by
MarcGuay.
Plugin Support
qtwrk
(@qtwrk)
you should better vary it , Cache -> Advance -> cookie vary , put the name of cookie that your set with address
The same problem happens (a page with no-cookie is cached by the bot’s visit and then served to the user because the logic to check for the cookie doesn’t execute).
-
This reply was modified 2 months, 1 week ago by
MarcGuay.
Plugin Support
qtwrk
(@qtwrk)
how come ? are you sure you set it correctly ?
please provide a new report, let me double check
Is there a way to prevent specific user agents from generating page caches?
Plugin Support
qtwrk
(@qtwrk)
you can use Cache -> Exclude -> Do not cache user agent
That is perfect, thank you for your help!
Can you please delete the link to the staging site that you posted above?