Good day, friends!
I couldn’t find the answers on Google, also can’t ask these questions on SO, I don’t think it’s the right format, and no answer on other communities, so, sorry for bothering if it’s not the right format here either.
I recently started to learn PWA topic, specifically Service Workers. I went through MDN tutorial and since I code on Next.js I took “next-pwa” library and successfully implemented offline functionality. “next-pwa” updates the cache (with new assets) automatically after every rebuild.
My questions:
1.
Next.js allows to use ISR feature that incrementally updates static website (including new pages) without necessity to rebuild the website. **Does the website need to be rebuilt in order for Service Worker to update the cache? Will there be a trade-off “ISR feature vs offline functionality”?
The bigger the website the bigger the cache. Imagine the huge blog with million posts or e-commerce site with million items. **Is there any data limit for caching? Are there any restrictions about what kind of websites are “allowed” or “not allowed” or partially “allowed” to cache (due to size)?