Sometimes, we want to disable cache for some images with HTML.
In this article, we’ll look at how to disable cache for some images with HTML.
How to disable cache for some images with HTML?
To disable cache for some images with HTML, we add a query string after the URL.
For instance, we write
<img src="image.png?dummy=576676" />
to add ?dummy=576676"
after the image URL to reload the image from the automatically.
The number is a randomly generated number.
Conclusion
To disable cache for some images with HTML, we add a query string after the URL.