diff options
| author | Antony Lesuisse <al@openerp.com> | 2014-05-01 22:42:42 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2014-05-01 22:42:42 +0200 |
| commit | aa943fae185ee7129fcaf9ef69dd1de2f5e045b5 (patch) | |
| tree | 27fdbcaf620ec2b8f958727aa48ec780355a451d /addons/web/controllers/main.py | |
| parent | eb44c37dd9cf0045358c6a79bc664bf8fa9d70bd (diff) | |
[FIX] qweb loading concat mode only, increase cache age to one day
bzr revid: al@openerp.com-20140501204242-jngte754yqyj4nb0
Diffstat (limited to 'addons/web/controllers/main.py')
| -rw-r--r-- | addons/web/controllers/main.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 8bd7950c0ac..7cc240a3ac7 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -608,7 +608,7 @@ class Home(http.Controller): # TODO: check that we don't do weird lazy overriding of __call__ which break body-removal return make_conditional( - response, bundle.last_modified, bundle.checksum, max_age=60*5) + response, bundle.last_modified, bundle.checksum, max_age=60*60*24) @http.route('/web/css/<xmlid>', type='http', auth='public') def css_bundle(self, xmlid, **kw): @@ -623,7 +623,7 @@ class Home(http.Controller): bundle.css(), [('Content-Type', 'text/css')]) return make_conditional( - response, bundle.last_modified, bundle.checksum, max_age=60*5) + response, bundle.last_modified, bundle.checksum, max_age=60*60*24) class WebClient(http.Controller): @@ -635,10 +635,6 @@ class WebClient(http.Controller): def jslist(self, mods=None): return manifest_list('js', mods=mods) - @http.route('/web/webclient/qweblist', type='json', auth="none") - def qweblist(self, mods=None): - return manifest_list('qweb', mods=mods) - @http.route('/web/webclient/qweb', type='http', auth="none") def qweb(self, mods=None, db=None): files = [f[0] for f in manifest_glob('qweb', addons=mods, db=db)] |
