From 7b10eff3d24f59180d80431202f568f07b95040f Mon Sep 17 00:00:00 2001 From: "Silas S. Brown" <ssb22@cam.ac.uk> Date: Fri, 4 Dec 2015 22:11:24 +0000 Subject: [PATCH] Update Web Adjuster git-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/adjuster@2359 29193198-4895-4776-b068-10539e920549 --- adjuster.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/adjuster.py b/adjuster.py index 79e320e..b6ef7ae 100755 --- a/adjuster.py +++ b/adjuster.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -program_name = "Web Adjuster v0.2 (c) 2012-15 Silas S. Brown" +program_name = "Web Adjuster v0.201 (c) 2012-15 Silas S. Brown" # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1604,7 +1604,9 @@ document.forms[0].i.focus() if v: return self.handle_URLbox_query(v) else: return self.serve_URLbox() if maybeRobots: return self.serveRobots() - if self.needCssCookies(): return self.redirect("http://"+hostSuffix()+publicPortStr()+"/?d="+urllib.quote(protocolWithHost(realHost)+self.request.uri)) # go to the URL box - need to set more options + if self.needCssCookies(): + self.add_nocache_headers() # please don't cache this redirect! otherwise user might not be able to leave the URL box after: + return self.redirect("http://"+hostSuffix()+publicPortStr()+"/?d="+urllib.quote(protocolWithHost(realHost)+self.request.uri)) # go to the URL box - need to set more options self.addCookieFromURL() # for cookie_host converterFlags = [] for opt,suffix,ext,fmt in [ -- GitLab