Skip to content

Flask-Login sets a session cookie for anonymous requests making very difficult to use Varnish #109

@teleyinex

Description

@teleyinex

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions