Andy wrote:
> "Zilbandy" […] wrote:
>> I "manage" a page for a friend and a couple of times a year I get a
>> message from her that the page is not showing the new information. I
>> use WS_FTP to upload new files to the server and everything works on
>> my end, but she doesn't get updates showing on her end. There are
>> others she says also don't see the changes. I always tell her to find
>> the "refresh" button and push that. She forgets about it just about
>> every time I change page content. Is there a solution to the problem
>> using html that will work in the main 5 browsers I try to support?
>> (IE, FF, Oprah, Safari, Chrome) It seems like I'd be better off
>> putting a statement on the web site suggesting people to refresh their
>> page, but that sounds like a bad idea to me.
>>
>> The page is at
http://journeytohealing.com/calendarofevents.htm
>>
>> Any thoughs will be appreciated.
>
> IF (I stress the word IF) your server supports php and IF it's configured
> to interpret php without needing the .php suffix then
… the Web site will run rather slowly, because all resources will need to be
parsed by PHP. A Really Bad Idea.
> all you need to do is add the following lines to the very top of the
> calendarofevents.htm page...
>
> <?php
> //Set no caching
> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
> header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
> header("Cache-Control: no-store, no-cache, must-revalidate");
> header("Cache-Control: post-check=0, pre-check=0", false);
> header("Pragma: no-cache");
Not allowing the resource to be cached *at all* is ultimately detrimental to
loading speed. Do not do that.
> ?>
>
> ... if it works, the page won't be cached and it will solve your issue, if
> it doesn't work you'll just see the above lines printed out at the top of
> the page in your browser.
>
> Worth it for a quick 5 minute test?
A better wheel has been invented already. RTFM.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$
8300...@news.demon.co.uk>