Fallback vary cookie based on URL
-
Hi there,
I am using the currency features inside WPML. That gives multiple cache version of the same URL because the currency can be changed based on the value of the wcml_currency cookie. As far as I know, that cookie-vary is controlled through _lscache_vary.
The problem is, that the currency vary feature will always make the first hit a miss because the wcml_currency cookie is not set on the first visit. However, in 95+ % of the cases, I will know what currency the customer want to see based on the URL/domain (.se => SEK, .com => EUR, .no => NOK etc.).
Therefore: Is it possible to set some kind of fallback so if the cookie is not set, LiteSpeed will serve the version based on the fallback-guess?
Hope it makes sense..
Best Regards,
Peter
The topic ‘Fallback vary cookie based on URL’ is closed to new replies.