I generate some png charts and excel files using a mysql database. I display the charts as images in my webapplication, but from time to time IE users don;t have acces to the last version of the files because IE keeps showing to them the previous loaded datas(charts and excel files)
How to prevent happening that? On the client side what can be done?
My web-application is written in PHP. What approach should i use in order to force IE to load the new files?
Another approach you can use is to add a unique query string to the images you’re showing. On the image handler, you can ignore the data that is actually passed on the query string, but IE will treat URLs with different query strings as being unique and therefore require loading each one anew without using a cached version.
For example, changing:
to:
will get you to avoid the IE cache.