0

So, I have a web page which has a link to a URL, which if clicked, returns an image. The web server is running Flask. On call of that URL, Flask fetches a new image each time to return to the client.

However, due to the Browser caching the image, the user don't see the new image, if the link is clicked the second time. The only way to see the new image is to clear the Browser cache, or open the link in Private/Incognito mode.

So, I was wondering, if through some Javascript trick, I can force the browser to not cache the image, that is, get the new image each time.

MetallicPriest
  • 25,675
  • 38
  • 166
  • 299

0 Answers0