We are building a progressive web app for iOS devices, and we know about the 50 MiB cache imposed by Safari browser. How can we handle this limitation when we know that the app's service worker may have to cache data more than 50 MiB if we include all the static resources, videos and images, etc. Our first preference is to keep the app running offline even after the cache. is full, and if not possible, at least prevent the app from crashing if the user works offline.
It would be good if you provide a generic answer that we can implement in other PWAs as well.