Skip to content
Advertisement

Tag: filenames

Append cachebreaker to filenames of all images of a type

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

Advertisement