Removing header from cached response with NGINX
问题 I have NGINX running as a reverse proxy in front of a few Flask apps. I want to implement caching for logged out users. Flask-login adds a Set-Cookie header for every response, even for anonymous users, as it contains a session cookie with a CSRF token. This means that that I'm using proxy_ignore_headers Set-Cookie; to ensure that stuff actually get's cached by NGINX (which won't cache and response with a Set-Cookie header). I'm setting a separate cookie in the apps to indicate the logged in