I am currently using mod_cache to cache page details of a web application.
I have a Vary cache based on User-Agent and Accept-Language, as there are different payloads for these situations.
Vary: User-Agent, Accept-Language
We plan to have information on specific regions on each page, but it is here that we are trying to define our caching strategy.
We have a cookie that continues to indicate the region to which we are attached, but obviously the cache does not depend on this cookie.
Is it possible to vary depending on the value for certain cookies or headers in general? (Note that I say some cookies, since we do not want the session identifier to encounter this) - something like a regular expression matches this:
location=(.+?);
source
share