I have a php app that displays product images. When the image is changed by the user, IE7 appears to display the cached version instead of the new current version.
Note that when the image is changed, the name remains the same but the date and size are changed on the server.
I am having trouble turning off the cache for IE7. I currently have the following header and meta data code, which does not work in IE7:
<meta name='revisit-after' content='1 day'>
<META HTTP-EQUIV='Pragma' CONTENT='no-cache'>
<META HTTP-EQUIV='Expires' CONTENT='-1'>
<META HTTP-EQUIV='Cache-Control' CONTENT='no-store, no-cache, must-revalidate'>
<META HTTP-EQUIV='Cache-Control' CONTENT='post-check=1, pre-check=2'>
header('Cache-Control: no-cache, no-store, must-revalidate');
header('Pragma: no-cache');
The code works fine in Chrome and FF.
Any ideas?