I'm trying to figure out how to prevent a PHP page from caching in the browser, in memory, or in some server cache somewhere.
My basic problem is like this: my general coding style is to create a ton of subFunctions that render html, authenticate users and whatnot, and call them with one main superFunction to build the page. However, when I tweak a subFunction, like to add an echo or whatever, I find that the results of my tweaking don't show up immediately when I view the page because as far as the browser is concerned, the page hasn't changed.
I have this code at the top of each page I make:
header("Cache-Control: no-store, no-cache, must-revalidate");
but it doesn't seem to be helping things ...
:luis
www.highfiber.org