I want to make a js script to check if there are old cached files and if yes, an auto-reload would be performed or even a notification appears on the top of the screen to reload the page with a button action with the following code.
location.reload(true)
Can I, somehow, check if the user has old cached files compared to the server's one?
I want to check every file included images too!
UPDATE
How to force a web browser NOT to cache images
The solution from the above question doesn't work for me because I have like little icons and logo and many things that can be cached from the browser. I can't put "?{version}" on any file because many icons for example are stored to cache but called from css. So there's no way to change them this way.