summaryrefslogtreecommitdiff
path: root/addons/web/static/tests
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2019-09-23 17:07:47 +0000
committerqsm-odoo <qsm@odoo.com>2019-09-25 11:55:30 +0000
commitcf27ff8fd3476fd2b3b4b8736d7476dfbe75cfff (patch)
treef774a576b80a9120723a0d038a80cb30bceb0b53 /addons/web/static/tests
parent14a50ce62f4da822c2318ed946b8292d9236b489 (diff)
[IMP] http, *: review cache TTL values
* base, web Google now recommends a TTL of one year for static contents. We used to use 1 week in almost every case. This commit increases that value to one year for safe resources, like assets bundles which contain a specific hash in the URL which changes if the bundle is recomputed anyway. Note: this commit refactors the code so that both the one week and one year durations are defined in http.py and used by others apps. Loading the library "locale" file used to be done with 10-hours-cache, this has been increased to 1-week-cache by using the http.py STATIC_CACHE var. closes odoo/odoo#37402 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/tests')
0 files changed, 0 insertions, 0 deletions