Hi,
I'm trying to use Varnish to speed up my Flask application, and I've discovered that as soon as I load the Flask-Login extension (with the init method) all requests to the app create a cookie with the name session. This is problematic for Varnish because when a request has a cookie, Varnish moves it to the backend, converting Varnish in a cache only for static content (the other option is to use ESI or cache for every cookie).
I've tried to figure out where in your code you set up the cookie, but I cannot find it. Can you help me?
Cheers
Hi,
I'm trying to use Varnish to speed up my Flask application, and I've discovered that as soon as I load the Flask-Login extension (with the init method) all requests to the app create a cookie with the name session. This is problematic for Varnish because when a request has a cookie, Varnish moves it to the backend, converting Varnish in a cache only for static content (the other option is to use ESI or cache for every cookie).
I've tried to figure out where in your code you set up the cookie, but I cannot find it. Can you help me?
Cheers