diff options
| author | Fabien Meghazi <fme@openerp.com> | 2013-02-27 12:41:34 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2013-02-27 12:41:34 +0100 |
| commit | d6975ff37ffc4a9a93873ae13b786ace8bb6bb41 (patch) | |
| tree | 61856ce264fc61f6a32cd979b36f17b5f07d13ec /addons/web/controllers | |
| parent | 5a9bf08f46773effb887be8bdda0c328a65b7de8 (diff) | |
[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
Diffstat (limited to 'addons/web/controllers')
| -rw-r--r-- | addons/web/controllers/main.py | 7 |
1 files changed, 1 insertions, 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 |
