summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorPierre Paridans <app@odoo.com>2020-08-18 10:50:15 +0000
committerPierre Paridans <app@odoo.com>2020-08-19 15:19:11 +0000
commit334bb2d8ef83810a7c67bb78e9afa35be33576bf (patch)
tree0612bcb445bf6fc59728002bfa04a78b1e8b5a27 /addons/web/static/src/js/views/basic/basic_controller.js
parentd1779ff5f7aeda6b0497cca005e2b6b92095bb18 (diff)
[IMP] website_event_track_online: PWA adds prefetch for offline use
This commit adds the prefetch of the current page's children (cf. under the same scope) to be available for offline use. For performance reason, only the first-level children are added to the cache to avoid a huge amount of requests and/or resources used by simply loading the event website's pages. Also, for the same reason, this process is delegated to the ServiceWorker to avoid cluttering the Main Thread. Note: due to some security restriction introduced in the Fetch spec, some redirects may prevent offline-requests from being properly fulfilled from the cache. See references for further details. References: - https://github.com/whatwg/fetch/issues/763 - https://github.com/GoogleChromeLabs/sw-precache/issues/220 - https://fetch.spec.whatwg.org/#concept-request-redirect-mode closes odoo/odoo#56159 X-original-commit: bc9a306bc8b373daeaaf593ed0a0e6bc944279b8 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com> Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions