Is there a way for NGINX to have a different cache depending on the value of a cookie?
In my case, I have a website (in my case, a plugin) that creates a cookie called devicePixelRatio. This is 1 in most cases but if you have a high-DPI display then it will be equal to 2 (or more). Basically the server-side generates the website differently depending on the value of this cookie (either it is 1 or something else). Basically I would need two caches, one for devicePixelRatio=1 and one for any other value of devicePixelRatio.
Is that possible?
Thanks a lot.