Different cache versions by cookie
-
I’m trying to serve cache versions by cookie – if a specific cookie is set, I need to generate a new cache version.
I added
do_action( 'wpsc_add_cookie', 'ta_seznam_ads' );
onwp_loaded
, and checkedLate init
in the WPSC settings.I opened https://www.ceska-justice.cz/2019/05/lidryne-favorita-eurovoleb-charanzova-ano-definice-maleho-stredniho-podniku-by-mela-smerovat-k-vetsi-pravni-jistote-firmy/, which generates the default cache file
Then I added the referrer, which sets my cookie:
https://www.ceska-justice.cz/2019/05/lidryne-favorita-eurovoleb-charanzova-ano-definice-maleho-stredniho-podniku-by-mela-smerovat-k-vetsi-pravni-jistote-firmy/?utm_source=www.seznam.czAfter that, I go to the first link again and I expected to see different cache version from the default one, but for some reason that did not work.
Am I missing something?
Thanks!
- The topic ‘Different cache versions by cookie’ is closed to new replies.