I always thought you had to open a cache first to do a match on the request. I was pleasantly surprised to see that you can do it on the caches object directly and it'll still work! Thank you so much for your content! 🙏
this video is a treasure
great video i still feel like for caching strategies it's best to use something like workbox but this really shows how things work internally
Awesome! This explains how to respond with offline events inside SPA service workers. If I have an offline.html then it defeats the purpose of (my) SPA. I wonder if I could request a video about CORS? This confused me somewhat since googleapis is cross origin.
Awesome Video ... Do you have a website where you offer your courses?
I have a issue, the strategies that u mentioned are good but the problem is that lets take networkRevalidateAndCache for example since it always tries to fetch data from the server and put it in the cache if successful, overtime we are gonna have duplicate data, the same data will be put in the cache every reload because we are not deleting the old. I just noticed that my cache hit the 5 GB mark all filled wit duplicata data.. can yiu please help me regarding that
La pregunta sería si está forma sirve con aplicaciónes hechas en react js o cualquier framework como next ?
Great video, very clear and easy to understand! Is there a method where I can use staleWhileRevalidate, but only actually fetch the file from the network if it is a more recent file version? I have a number of PDF documents I want to cache and it would be great to revalidate them to keep current, but not redownload them every time to keep the cache current. The only way I can see to go about this is with the cache name/version, but then I am triggering a fetch of all the documents anytime there is an update to refresh the cache with. Is there a better strategy out there?
Some service workers use Workbox from workbox-window, could you possible make video on that ?
@Tremolo696