summaryrefslogtreecommitdiff
path: root/addons/web/controllers/main.py
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2013-07-24 17:19:29 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2013-07-24 17:19:29 +0200
commitb105770bbc0f545a4dfd0482b5b310f534fc1033 (patch)
tree6efa110c9ad0d88fd88659af95e5df85bedac019 /addons/web/controllers/main.py
parenta3f57cd43b4f6cd00ce06564f7fde1dbb6598d5f (diff)
[IMP] removed hack to force disable the browser's cache and use http headers instead
bzr revid: nicolas.vanhoren@openerp.com-20130724151929-8j1bo1ae64lwkxdw
Diffstat (limited to 'addons/web/controllers/main.py')
-rw-r--r--addons/web/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 0f92d769fa2..da3cc8b8d2a 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -557,7 +557,7 @@ class Home(http.Controller):
'modules': simplejson.dumps(module_boot(db=db)),
'init': 'var wc = new s.web.WebClient();wc.appendTo($(document.body));'
}
- return r
+ return request.make_response(r, {'Cache-Control': 'no-cache', 'Content-Type': 'text/html; charset=utf-8'})
@http.route('/login', type='http', auth="user")
def login(self, db, login, key):