all
strategy usesversion
passed tooptions
as a cache tag. When version changes, old version cache is removed and new files are downloaded. Of course if files with the same name were not changed (HTTP status 304), the browser probably won't download them again and will just update cache.changed
strategy is more advanced thanall
.offline-plugin
will calculate the files' hashes on it's own, independent ofwebpack
s hash calculation. Even if a file is renamed, if the hash is the same, it will not be downloaded again, but rather just renamed. With this strategy enabled,index.html
(or other files without dynamic name) should be placed inmain
section of the cache, otherwise they won't be revalidated.- For
ServiceWorker
this means that only new/changed files will be downloaded and missing files deleted from the cache. AppCache
does not support thechanged
strategy and will always use theall
strategy.
- For
updateStrategy
does not apply toexternals
, as they're always revalidated/redownloaded onServiceWorker
update.