You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Robert Andersson <ro...@profundis.nu> on 2002/10/25 10:41:30 UTC
Re: [users@httpd] Apache 2.0.40 caching php?
Sorry for the delay; I've been too busy to keep up with this list ;-)
When done with this one, only 763 message to go... :(
Patrick Strang wrote:
> > Koen Vingerhoets wrote:
> > > Hi!
> > >
> > > add a variable to your PHP pages URL, like my_page?x=date
> >
> > That works, but should not be necessary.
> >
> > Patrick, I have Apache 2.0.36/Win32 (I know, should upgrade both ;-)
with
> > PHP 4.2.1, and have had no problem with caching them. Can you perhaps
check
> > what the browser sends in its request?
> >
> > Regards,
> > Robert Andersson
>
>
> I've tried with IE, Mozilla and Opera and the problem arises everywhere.
(The server is a Debian with 2.2.20 kernel).
> In my access-logs it says:
> "GET /index.php HTTP/1.1" 304 0
That is weird, I think. Nowhere have I seen a "normal" php been accessed as
304 before. I just checked a great deal of log files to see if I could see
any instance of that, but found none; all are returnd as 200.
What I thought first, was that the client wasn't sending a request, but
apparently it is not so. Then, I thought that there may be some lame
(caching) proxy inbetween, that sent back a cached version of the page. I
currently have problems with a client, that I've made a lot of neat
web-based managing tools for, but they can rarely see any instant change,
because they sit behind some stupid proxy. This was, apparently, not the
case either.
A PHP-script itself may output a 304 status response, but that is not the
case here, right?
I think it boils down to some Apache or PHP setting. I think both have
caching directives, which might be misconfigured. If you haven't already
solved this, try checking these.
Regards,
Robert Andersson
---------------------------------------------------------------------
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