1
I am creating a service worker for a pwapp
I managed to manage the cache through serviceworker but when updating the pwapp files, the following occurred:
serviceworker deleted the old cache normally, but when loading the new files, they were still somehow saved in another browser cache, and so the changes were not loaded...
For the record: in another test, I disabled the cache in Chrome devtools, and that way everything worked correctly, with the service worker saving the files in its own cache, and when I left offline by devtools, the files were loaded correctly from the cache.
The question is: are there two separate caches or am I mistaken? If yes, how do I use only the service worker cache, disabling the other?
I’m using the link codes: https://developers.google.com/web/fundamentals/primers/service-workers/? hl=en
Regardless of where you are running the code, the Cache API is the same, so, no, there are no two separate caches. Most likely, the cache was deleted after the requests were made and answered with the old files
– Costamilam