I have a weather station, connected to a Raspberry Pi, every 5 minutes it generates new html and images/graphs and FTPs them to my website.
This all works well, the correct files are generated and uploaded. However, Chrome, when refreshing the page picks up all the numbers (in the HTML) but doesn't refresh the images. If I go into Developer Tools and do a Hard Refresh, it reloads everything fine.
Is there anything I can add to the HTML to stop it caching the images, force a reload each time?
I've tried adding this to the head:
And this to the IMG tag: class="NO-CACHE"
But no luck, anyone know how to get this to work?
This all works well, the correct files are generated and uploaded. However, Chrome, when refreshing the page picks up all the numbers (in the HTML) but doesn't refresh the images. If I go into Developer Tools and do a Hard Refresh, it reloads everything fine.
Is there anything I can add to the HTML to stop it caching the images, force a reload each time?
I've tried adding this to the head:
HTML:
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
And this to the IMG tag: class="NO-CACHE"
But no luck, anyone know how to get this to work?