Mercurial > moin > 1.9
changeset 26:842243815e18
add Vary: User-Agent (so that bots don't spoil the cache)
imported from: moin--main--1.5--patch-27
author | Thomas Waldmann <tw@waldmann-edv.de> |
---|---|
date | Sat, 24 Sep 2005 17:35:11 +0000 |
parents | 45b0940c3146 |
children | 883dd7b59979 |
files | MoinMoin/Page.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/Page.py Sat Sep 24 15:53:52 2005 +0000 +++ b/MoinMoin/Page.py Sat Sep 24 17:35:11 2005 +0000 @@ -1095,6 +1095,8 @@ # need to inform caches that content changes # based on cookie (even if we aren't sending one now) request.setHttpHeader("Vary: Cookie") + # we include User-Agent because a bot might be denied and get no content + request.setHttpHeader("Vary: User-Agent") # use "nocache" headers if we're using a method that # is not simply "display", or if a user is logged in