Is there a client-side way to prevent an image from being cached?
Posted
by morgancodes
on Stack Overflow
See other posts from Stack Overflow
or by morgancodes
Published on 2010-04-23T23:00:04Z
Indexed on
2010/04/23
23:03 UTC
Read the original article
Hit count: 319
Is it possible to control with javascript whether a browser goes to the server for an image or to the browser cache? Can I force the browser to make a server call when it would otherwise use a cached image? I know I can simply append a query string to my image url, but, if I understand correctly, that works because the browser sees that as a new image. I want the old image to be replaced in the cache.
© Stack Overflow or respective owner