Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow certain paths to be excluded from session generation. #46

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mdornseif
Copy link
Contributor

Set-Cookie headers do not interact well with many HTTP-caching
strategies. This changesets makes it easy to avoid generating
session Information and thus Set-Cookie headers for certain paths.

E.g.

app = SessionMiddleware(app,
    cookie_key=COOKIE_KEY,
    ignore_paths='^/images/.*$')

This pull request does not include updates to the test code because I didn't find an obvious way to integrate it. But I use the code in production. (see https://cloud.google.com/files/Hudora.pdf#)

Maximillian Dornseif added 4 commits May 7, 2012 10:48
…ssion initialized. This patch makes the error 1) non-fatal and 2) debugging much easier.
…is no session initialized. This patch makes the error 1) non-fatal and 2) debugging much easier."

This reverts commit ec71d8b.
`Set-Cookie` headers do not interact well with many HTTP-caching
strategies. This changesets makes it easy to avoid generating
session Information and thus `Set-Cookie` headers for certain paths.

E.g.

    app = SessionMiddleware(app,
        cookie_key=COOKIE_KEY,
        ignore_paths='^/images/.*$')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant