User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:devel:serviceworker [2020/03/01 19:49]
joebordes [Things you need to know]
en:devel:serviceworker [2020/03/01 19:50]
joebordes [Things you need to know]
Line 11: Line 11:
  
   * for the service worker to update all the files in cache (after an update of your code) you **MUST close all tabs and then reload the page** you are on   * for the service worker to update all the files in cache (after an update of your code) you **MUST close all tabs and then reload the page** you are on
-  * if just one file in the set of cached files cannot be loaded the whole cache is invalidated. This can happen, for example, if you have some AD-Blocking software, so it is recommended that you put your coreBOS install URL in the whitelist of that software+  * if just one file in the set of cached files cannot be loaded the whole cache is invalidated. This can happen, for example, if you have some AD-Blocking software, so it is recommended that you **put your coreBOS install URL in the whitelist** of that software
   * to regenerate the service worker you must install workbox in your server and execute <​code>​include/​sw-precache/​regen_swprecache</​code>​   * to regenerate the service worker you must install workbox in your server and execute <​code>​include/​sw-precache/​regen_swprecache</​code>​
   * if you are developing some new features that have to go in javascript files you cannot modify any of the files in the service worker list as your changes will not be picked up by the browser: use hooks. **Do not update the service worker in your project** as it will give you a lot of conflicts (we update it a lot).   * if you are developing some new features that have to go in javascript files you cannot modify any of the files in the service worker list as your changes will not be picked up by the browser: use hooks. **Do not update the service worker in your project** as it will give you a lot of conflicts (we update it a lot).