We are currently using proxy_cache_bypass directive on NGINX to bypass caching when a cookie is set. This is our code:
proxy_cache_bypass $cookie_user;
However, we only want the server to bypass the cache for HTML content. We still want cached images to be served from the cache, even when the cookie is set.
Can this be achieved? I've looked everywhere and can't find an example.
Your help is always appreciated.
Many thanks.
0 Answers