The user goes through various selections and an image is formed (on the server), then sent back to the client to show the updated image (SAME IMAGE NAME)
It did not work "all the time" (IE7).
I realised that the first image was stored in the cache and that, when the new image came, the image displayed was the one from the user's CACHE!
Easy enough:
Expand|Select|Wrap|Line Numbers
- <?php
- header("Cache-Control: no-cache, must-revalidate");
- header("Expires: Fri, 14 Sep 2007 05:00:00 GMT");
- before the headers did the trick... for IE7 and others, but NOT for firefox.
- I tried all sorts of combinations:
- // session_cache_limiter( 'nocache' );
- // session_start( );
- or
- //header("ETag: PUB" . time());
- //header("Last-Modified: " . gmdate("D, d M Y H:i:s", time()-10) . " GMT");
- //header("Expires: " . gmdate("D, d M Y H:i:s", time() + 5) . " GMT");
- //header("Pragma: no-cache");
- //header("Cache-Control: max-age=0, s-maxage=0, no-cache, must-revalidate");
- //session_cache_limiter("nocache");