mitsuhiko/flask — pull request #1026 by citruspi (2014-04-16 21:45:42+00:00)
Title: Append `Vary: Cookies` header to response when session is accessed

To prevent caching proxies like Varnish from providing multiple users with the same cache, you can set a `Vary: Cookie` header.

This pull request appends the header to each response when the session is accessed.

I came across this issue while working on Warehouse, PyPi 2.0. @dstufft wanted something that added the header to the response anytime the session was being used.

— @citruspi + @abadger