Different cache based on cookie


#1

I see it’s possible to ‘bypass cache’ based on presence of a cookie.

Is it possible to serve a different cache based on presence of a cookie, in a similar manner to how query string elicits a different cache.


#2

I don’t believe that is possible, you can write a Worker that, based on the cookie gets a different page. That is easily doable.

Note that bypass cache on cookie is available only in Business and Enterprise plans.
As always everything may change if you are an Enterprise customer. In that case contact your Solutions Engineer.


#3

It is possible using custom cache keys if you are on an enterprise plan.


#4

I like that writing something like is basically always true :joy::

As always everything may change if you are an Enterprise customer.


#5

This topic was automatically closed after 14 days. New replies are no longer allowed.