I would like my app (a static web site) to run offline using a Service Worker. I can't see a way to do this without caching all the images from the srcset
attribute. I can see how client hints would solve the problem but that apart is there a solution that would work without involving the server doing anything but serve requested files?
I can see perhaps how a Service Worker could calculate the image to request given the information in the img
tag and a naming convention for images...
Has anyone tackled this problem, or thought about it at all?