I created a page that will be doing image resizing and manipulation, which seems to work (using GD library). However, upon returning to the page where the image has been changed, I still see the old image, until I refresh my browser and then zappo, there it is! All changed!
I have done everything I can think of to force caching including this:
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0
header("Pragma: no-cache");
And even including a "junk" query string value that returns a random string of characters:
[Quotehttp://.../..index.php?id=$id§ion=$section&action=$action&junk=<?= randString(16); ?>[/Quote]
All to no avail!! The page STILL caches no matter what I do, only to show the changed image if I refresh my browser.
The URL will always be "index.php" for ease of architectural build (using query string values to deliver the right classes and methods to perform whatever action is necessary). Again, everything works, just can't view my changed image unless I manually refresh my browser.
Any other ideas?
Phil