On a particular site I have images which shouldn't be cached. On the other hand the images shouldn't be reloaded every time the visitor changes to another page on the site where one of those images is displayed, as long as the browser hasn't been closed in between.
Currently I am serving the following headers:
Cache-Control: private, pre-check=0, post-check=0, max-age=0
These headers work in that no version of the images is left on the disk, but the browser tries to reload them every time they are on a page, even within a single browser session. I am trying to emulate the behavior of cookies which are valid during the lifetime of the browser, but I haven't found the working combination of headers yet. Any idea's how I can achieve my goal?