I have an ASP.NET C# application that contains images. I went in and modified some of my images that are used in the application but didn't change the name. I know that if I change the name, it will download the new image to the browser, but if my clients have already visited that page, that image will most likely be cached on the client machine.
I was wondering, is there a way through the GLOBAL.ASAX page in the session start, to indicate that the website should pull all information and download and disregard all local cached data?
This would be helpful as well for JS and CSS files. Right now I append a URL parameter based on the version of the application... I would hate to do that for all images...
***StaticContent
and had anSrc
property, and added?v=yyyymmddHHmmss
when rendering the final URL for the resource where yyyymmddHHmmss is theFile.LastModified
date