Static Elements Caching Adding different files to caches one by one , and also serving from service worker addAll for caching multiple files Dynamic caching since we don't know all the requests which we require so we can dynamically cache those , if it is not found in the caches then first make request and then store response . Adding cache versioning why do we need cache vesrsions If we will do some change in a file ,then if that file is already cached changes does not reflect since service worker will serve same old version of the files . so we have to maintain different version of cache , also we need to clean previous version so that files will be not served from previous version code used sw.js var CACHE_STATIC_NAME = 'stati...
Comments
Post a Comment