Hi there,
PROJECT
I have a PHP based site where the admin creates a product in 5 steps. In the first step(s) the user will select/upload a thumbnail and a larger picture.
The pictures are renamed to match the product name with an addition of -thumb or -pic before the file extension. Example:
[tt]thisProduct-thumb.gif[/tt] and [tt]thisProduct-pic.jpg[/tt]
Works fine.
When the user changes/uploads new thumbnail/picture in later steps the file is uploaded and renamed.
Works fine.
PROBLEM
The file is replaced, but remains in the browser cache (IE6) because the name is the same as before the picture(s) were replaced.
Well, actually, the thumbnail image does change in the browser - probably because of it's small size. The bigger image just won't. Tried putting in the address of the picture in the browser address line, then pressing Ctrl-F5 to force a reload -THEN the right (new) picture is displayed...
Must be something about the cache control in the HTML HEAD section, I recon.
I've tried:
without any success...
Any suggestions?
Many thanks
Jakob
PROJECT
I have a PHP based site where the admin creates a product in 5 steps. In the first step(s) the user will select/upload a thumbnail and a larger picture.
The pictures are renamed to match the product name with an addition of -thumb or -pic before the file extension. Example:
[tt]thisProduct-thumb.gif[/tt] and [tt]thisProduct-pic.jpg[/tt]
Works fine.
When the user changes/uploads new thumbnail/picture in later steps the file is uploaded and renamed.
Works fine.
PROBLEM
The file is replaced, but remains in the browser cache (IE6) because the name is the same as before the picture(s) were replaced.
Well, actually, the thumbnail image does change in the browser - probably because of it's small size. The bigger image just won't. Tried putting in the address of the picture in the browser address line, then pressing Ctrl-F5 to force a reload -THEN the right (new) picture is displayed...
Must be something about the cache control in the HTML HEAD section, I recon.
I've tried:
Code:
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="expires" CONTENT="0">
<META HTTP-EQUIV="PRAGMAS" CONTENT="NO-CACHE">
Any suggestions?
Many thanks
Jakob
