From d6975ff37ffc4a9a93873ae13b786ace8bb6bb41 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Wed, 27 Feb 2013 12:41:34 +0100 Subject: [PATCH] [FIX] Remove url timestamps in debug mode The chrome cache bug seems to be gone with newer versions. Moreover, the cutting edge features of the webkit developper tools won't work if url changes upon reload. bzr revid: fme@openerp.com-20130227114134-nlv7g5jjvvd037p2 --- addons/web/controllers/main.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 9fe38a9d23a..d3a201010e0 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -300,12 +300,7 @@ def manifest_list(req, extension, mods=None, db=None): path += '?' + urllib.urlencode({'db': db}) return [path] files = manifest_glob(req, extension, addons=mods, db=db) - i_am_diabetic = req.httprequest.environ["QUERY_STRING"].count("no_sugar") >= 1 or \ - req.httprequest.environ.get('HTTP_REFERER', '').count("no_sugar") >= 1 - if i_am_diabetic: - return [wp for _fp, wp in files] - else: - return ['%s?debug=%s' % (wp, os.path.getmtime(fp)) for fp, wp in files] + return [wp for _fp, wp in files] def get_last_modified(files): """ Returns the modification time of the most recently modified