Stopping Page caching
-
I have a page which returns contenttype image/png. The problem with this is that browsers always assume the image has not changed since it has the same filename. How can I force the browser to get the page that outputs the png from the server in each case, avoiding caches?
Simon Walton
Sonork: 10024P
-
I have a page which returns contenttype image/png. The problem with this is that browsers always assume the image has not changed since it has the same filename. How can I force the browser to get the page that outputs the png from the server in each case, avoiding caches?
Simon Walton
Sonork: 10024P
-
I have a page which returns contenttype image/png. The problem with this is that browsers always assume the image has not changed since it has the same filename. How can I force the browser to get the page that outputs the png from the server in each case, avoiding caches?
Simon Walton
Sonork: 10024P
It is a browser setting that controls image caching.. I am not if there is a way to control this from server side code. :zzz:----------------------------------------------------------------------:(( T Manjaly
C# Tutorials and samples : http://www.dotnetspider.com -
I have a page which returns contenttype image/png. The problem with this is that browsers always assume the image has not changed since it has the same filename. How can I force the browser to get the page that outputs the png from the server in each case, avoiding caches?
Simon Walton
Sonork: 10024P
i've never tried it before so i'm not sure if it will work for images, but i imagine that if you add a randomly generated querystring to the image link the browser might decide not to cache it. if it does work, you should definitely test it on the different browsers and versions. for example
-
i've never tried it before so i'm not sure if it will work for images, but i imagine that if you add a randomly generated querystring to the image link the browser might decide not to cache it. if it does work, you should definitely test it on the different browsers and versions. for example
I did actually think of that! Doesn't seem to work though. :(
Simon Walton
Sonork: 10024P