I'm currently debugging my PWA's QR scanner that uses the fabulous library Instascan. It's working perfectly everywhere but iOS, and I'm trying to figure out why. Unfortunately my attempts are halted by Safari's aggressive caching. Safari just doesn't download my new js files. I'm caching these files using a service worker.
What I've tried:
file.js?v=2
)Is there any way to ensure that Safari downloads the files when they are changed? My server runs on plain old ASP.NET. I've disabled bundling and minification for the development process, so each file is added with a script
tag.
Appending ?v=<random code>
to your included js file paths works perfectly. If your bundling is off in ASP.NET, these version numbers are removed. Turns out bundling via ASP.NET already adds random version numbers.
This question is solved for me.