diff options
| author | Jeremy Kersten <jke@odoo.com> | 2020-10-26 18:05:58 +0000 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2020-10-26 18:06:13 +0000 |
| commit | bb4d5bebaf926cbdf6f8842cd1ca0e5850523bf5 (patch) | |
| tree | d4e248ae86ded266f91486fad916c0a095499073 | |
| parent | 7c7c40f6248b15274afd0cd75d0be28d1ccb1e8f (diff) | |
[FIX] website: favicon use STATIC_CACHE_LONG that is a real year
365 * 24 * 60 is not a year, but year/60 ;)
While we fix it, it is the good time to change and use the dedicated
http.STATIC_CACHE_LONG that exists for it.
closes odoo/odoo#60768
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
| -rw-r--r-- | addons/website/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/controllers/main.py b/addons/website/controllers/main.py index 8601eb9e03b..c94075e946b 100644 --- a/addons/website/controllers/main.py +++ b/addons/website/controllers/main.py @@ -576,5 +576,5 @@ class WebsiteBinary(http.Controller): def favicon(self, **kw): website = request.website response = request.redirect(website.image_url(website, 'favicon'), code=301) - response.headers['Cache-Control'] = 'public, max-age=%s' % (365 * 24 * 60) + response.headers['Cache-Control'] = 'public, max-age=%s' % http.STATIC_CACHE_LONG return response |
