Skip to content

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

Open
mdornseif wants to merge 4 commits intodound:masterfrom
mdornseif:master
Open

Allow certain paths to be excluded from session generation.#46
mdornseif wants to merge 4 commits intodound:masterfrom
mdornseif:master

Conversation

@mdornseif
Copy link
Copy Markdown
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