I’m able to identify all images of type (SVG) and append a cachebreaking date string in the console log. I’ve been looking at this solution, but it’s only for individual filenames, not multiple images: https://stackoverflow.com/a/1077051/3787666 Any help appreciated. Answer Okay, here’s how it works, adding a cachebreaker to every SVG image in a page: Caveat is that this forces the
Tag: browser-cache
Service Workers – selectively choose resources
I have a simple Service Worker implementation like this: My goal is to cache all resources except the two files indicated in the urlsToCache variable, these two files should ALWAYS be requested from the network.. How can i achieve this? How can I then verify that it is actually so? Answer You can check the url of the request in
Determining a page is outdated on github pages
Github pages sets very aggressive cache headers (Cache-Control: max-age=86400 1 day, Expires 1 month ahead) on all served content. If you update your pages and push to github, people revisiting the pages who have already got cached copies will not get the new pages without actually cleaning their browser cache. How can a script running in a page determine that