Since the SW uses a cache-first strategy that will never check for updates to resources outside of the install handler, it's crucial that the HTTP request made during the install handler goes directly against the network, and doesn't return a response from the browser's cache. In order to ensure this, a cache-busting URL parameter can be added to each URL.
This is something that sw-precache takes care of automatically.
Since the SW uses a cache-first strategy that will never check for updates to resources outside of the
install
handler, it's crucial that the HTTP request made during theinstall
handler goes directly against the network, and doesn't return a response from the browser's cache. In order to ensure this, a cache-busting URL parameter can be added to each URL.This is something that
sw-precache
takes care of automatically.