[AWS] How to avoid caching?
David Marceau
davidmarceau@sympatico.ca
Wed, 12 Feb 2003 03:16:52 -0500
"Alejandro R. Mosteo Chagoyen" wrote:
>
> Hello everybody.
>
> I'm using AWS to build the GUI of my current project. However, I'm
> noticing that the pages are cached in the browser.
>
> Is there an easy mean to avoid caching? Some parameter in AWS that
> enables anti-caching headers?
>
> I could set these when I'm returning parsed templates in the source,
> but other responses are textual and I would evade if possible the
> hassle of providing the <head/> section of the page only to put these
> anti-cache headers.
>
> am I forgetting something? Has anyone faced this problem?
>
> _______________________________________________
> AWS mailing list
> AWS@lists.act-europe.fr
> http://lists.act-europe.fr/mailman/listinfo/aws
Alternatives you might try:
-I recently read somewhere when you name the file starting with "nph-"
the web browser doesn't cache the file.
i.e. try naming your url as
http://www.bla.blah/awsdemos/nph-alejandroguitest
-read the web browser docs on how to disable the cache, most browsers
have this.
-read the http protocol docs and look for keywords cache & disable, add
it to your code if you really have to.
-maybe read squid docs if you're running it on a linux system since
squid if I understand correctly also does some web page caching. Also
look for keywords cache and disable. -better yet for your tests just
stop this daemon :)
-if all these don't work out, just press the reload button on your
browser. This if I understand correctly always ignores the cache if
page is already displayed. i.e. if you had a counter being
displayed...reload...reload.. reload would increment it three times.
One question for you: what exactly necessitates you to cache off?
Please be verbose if you want a better opinion.
Cheers,
David Marceau