[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Added cache-control headers to pages returned by HTTP server so that pages
# HG changeset patch # User emellor@ewan # Node ID a39510ad5c591ee84592924e718c90d746f90097 # Parent 345e517bab57e122111378783540645e1b0a5dfb Added cache-control headers to pages returned by HTTP server so that pages expire immediately. This prevents navigation to stale pages. Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx> diff -r 345e517bab57 -r a39510ad5c59 tools/python/xen/web/http.py --- a/tools/python/xen/web/http.py Fri Sep 30 10:40:59 2005 +++ b/tools/python/xen/web/http.py Fri Sep 30 10:55:49 2005 @@ -437,6 +437,9 @@ send_body = self.hasBody() if not self.close_connection: self.setResponseHeader("Connection", "keep-alive") + self.setResponseHeader("Pragma", "no-cache") + self.setResponseHeader("Cache-Control", "no-cache") + self.setResponseHeader("Expires", "-1") if send_body: self.output.seek(0, 0) body = self.output.getvalue() _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |