I have a website built with Vue (SPA). I was playing with service workers and it seems that I completely screwed something, because now I can't see anything but a blank website in Safari on my iPhone.
I debugged the problem by plugging my phone into my Mac and using Safari's inspector tool see what's going on. It seems that a service worker is providing an old index.html
file, which then tries to pull an old .js
file (which doesn't exist anymore on the server). Because the server is returning a text/plain reply (a 404 page), safari on my phone is halting everything, because the content type of that 404 page doesn't match the expected content type of a .js
file.
The website still works fine on other devices, so at this point I'm not 100% sure if I'm the one to blame, or is it Safari's fault.
Either way, I want to, somehow, force a complete cache removal (including service workers). Is that possible? If not, how can I fix this problem?