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
Next revision
Previous revision
en:devel:serviceworker [2020/03/01 19:47]
joebordes [Things you need to know]
en:devel:serviceworker [2020/03/01 19:50] (current)
joebordes [Things you need to know]
Line 10: Line 10:
 ====== Things you need to know ====== ====== Things you need to know ======
  
-  * 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).
 +  * the list of cached files can be found in the service-worker.js file and in the sw-precache-config.js configuration file
   * if you really need to make a change in one of those files, talk to us, we will negotiate a way to make that happen   * if you really need to make a change in one of those files, talk to us, we will negotiate a way to make that happen
-  * +