You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Glynn Lawrence <La...@dotars.gov.au> on 2005/10/31 23:59:03 UTC
[users@httpd] Page caches
Classification: UNCLASSIFIED
We run an Apache 2.x (sorry, I do not know the exact version) on Windows
Server 2003.
I am trying to stop certain pages being cached as users complain they
can not see the up to date version.
Using a test page called testrefresh.html I put the following in the
<head>
<META HTTP-EQUIV="refresh" CONTENT="30;
URL=http://rvcs-prodweb.dot.gov.au/testrefresh.html">
and that forces the page to reload every 30 seconds which picks up any
new content.
But it also means the page is constantly being reloaded. Also, one of
the key pages I want to keep fresh is a menu and users do not dwell
there long. Setting the refresh to about 2 seconds is not really
feasible. Another one is a page which collects a username/password so
refreshing is not desirable.
I have tried <meta http-equiv="Pragma" content="no-cache">, <meta
http-equiv="Expires" content="-1"> and <meta http-equiv="Cache-Control"
content="no-cache, must-revalidate"> but none cause the page to be
loaded from the server on access. In all cases using the refresh button
or the refresh statement causes the content to be refreshed.
I have seen various references to cache related statements which are
probably in the Apache config file but frankly it may as well be in
Greek as far as I am concerned.
Is there some server setting which is preventing the cache control
working?
Or to put it another way, is there a server setting I can use which fill
force the pages to not be cached? and if so can I then choose which
pages to allow into cache? and if so how?
Lawrence Glynn
Re: [users@httpd] Page caches
Posted by Joshua Kogut <jm...@gmail.com>.
I disable cacheing completely in Apache, since I test my pages locally, I
need the most recent versions. Check the apache docs for cacheing info,
thats where I found it.
On 10/31/05, Nick Kew <ni...@webthing.com> wrote:
>
> On Monday 31 October 2005 22:59, Glynn Lawrence wrote:
> > Classification: UNCLASSIFIED
>
> Pardon?
>
> > I am trying to stop certain pages being cached as users complain they
> > can not see the up to date version.
>
> Of course they can! That's a browser function. Put up an instructions
> page for how to use dumb-user browsers if necessary.
>
> > <META HTTP-EQUIV="refresh" CONTENT="30;
> > URL=http://rvcs-prodweb.dot.gov.au/testrefresh.html">
>
> That is very nasty indeed.
>
> There are good reasons for cacheing. Do you really think you can
> implement a better regime? It'll only affect your users if their
> *browsers*
> are set to query the server when they revisit a page.
>
> --
> Nick Kew
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
--
|| jmkogut ||
email: jmkogut@gmail.com
|| Networking: Where all your problems are category 5. ||
Re: [users@httpd] Page caches
Posted by Nick Kew <ni...@webthing.com>.
On Monday 31 October 2005 22:59, Glynn Lawrence wrote:
> Classification: UNCLASSIFIED
Pardon?
> I am trying to stop certain pages being cached as users complain they
> can not see the up to date version.
Of course they can! That's a browser function. Put up an instructions
page for how to use dumb-user browsers if necessary.
> <META HTTP-EQUIV="refresh" CONTENT="30;
> URL=http://rvcs-prodweb.dot.gov.au/testrefresh.html">
That is very nasty indeed.
There are good reasons for cacheing. Do you really think you can
implement a better regime? It'll only affect your users if their *browsers*
are set to query the server when they revisit a page.
--
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org