This is the HTTP header I typically use to ensure that an image is not cached. And the reason why I do this to a select few images is because I have an image application integrated in my site and caching the images would make the application broken.
I use the following:
I tested in Opera 11.6 and Firefox 17.0.1. Opera 11.6 works fine, however Firefox 17.0.1 decides to cache the image anyways until I force-reload the page, and this is even after I choose to clear all caches and cookies in that browser.
I remember there is a
pragma: no-cache back in the day, but at the rate that technology is advancing, I wonder if that line is still effective today.
Can I somehow tweak cache-control to make firefox behave, or will I need to include pragma as well? And I'm looking for a solution so that all browsers can understand that no caching means no caching.