Categories
Archives

Web Theory

How to stop the browser from caching images

I came across this issue when building an “image manager”. The user would be prompted to upload an image, I would save it and change it’s name to a meaningful code. Problem is that when the page refreshed, the old image still showed. This was due to browser caching. The browser uses caching so that you don’t have to download the same...
Source Url: https://lukejkw.wordpress.com/2015/06/17/how-to-stop-the-browser-from-caching-images/

Share

You need to login in order to comment