httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Wagoner" <jwago...@wlion.com>
Subject RE: apache 2.0.36 caching php 4.2.0 pages
Date Fri, 10 May 2002 22:54:41 GMT
That would be a big pain to implement in all of our existing php pages.  Finding out how to
change the behavior in Apache 2 back to that in 1.3 in this instance would be a much better
solution.  Plus any hosting companies would need to have the old behavior, since they can't
tell everyone to rewrite their scripts.  Should I post this to the development list?

-----Original Message-----
From: Olivier Hubert [mailto:huberto@transc.com]
Sent: Friday, May 10, 2002 5:38 PM
To: users@httpd.apache.org
Subject: RE: apache 2.0.36 caching php 4.2.0 pages


The header function would stop the client from caching, but would it really stop the Apache
server? I think the problem lies at the server level... Nevertheless, the code for the PHP
headers would be:

header('Cache-Control: no-cache, must-revalidate');     // HTTP 1.1
header('Pragma: no-cache');     // HTTP 1.0

Olivier

At 22:31 2002-05-10 +0000, Khalid El-Kary wrote:

hi,
the only one more thing i can tell you is that you could control caching within PHP using
HTTP headers if there are... the function:

header(string header)

may do it for u but i don't know the HTTP header for it ... :) i hope i helped



-----Original Message-----
From: "Jon Wagoner" <jwagoner@wlion.com>
Reply-To: users@httpd.apache.org
To: <users@httpd.apache.org>
Subject: RE: apache 2.0.36 caching php 4.2.0 pages

I just tried using AddType instead of Set*Filter, and it still caches the php pages.

-----Original Message-----
From: Khalid El-Kary [mailto:khalid_kary@hotmail.com]
Sent: Friday, May 10, 2002 5:06 PM
To: users@httpd.apache.org
Subject: RE: apache 2.0.36 caching php 4.2.0 pages


hi,
to get PHP running as Module in Apache u should write these two lines

LoadModule php4_module c:/php/sapi/apache2filter.dll
AddType application/x-httpd-php .php .phtml

Note : i'm no sure about that this worked on Apache 2.0.35 not 2.0.36 i
didn't download it yet ... i hope i helped...

>From: "Jon Wagoner" <jwagoner@wlion.com>
>Reply-To: users@httpd.apache.org
>To: <users@httpd.apache.org>
>Subject: RE: apache 2.0.36 caching php 4.2.0 pages
>Date: Fri, 10 May 2002 16:00:52 -0500
>MIME-Version: 1.0
>Received: from [63.251.56.142] by hotmail.com (3.2) with ESMTP id
>MHotMailBEA5800C00674136E8223FFB388EE0AD0; Fri, 10 May 2002 14:01:00 -0700
>Received: (qmail 61417 invoked by uid 500); 10 May 2002 21:00:47 -0000
>Received: (qmail 61406 invoked from network); 10 May 2002 21:00:47 -0000
>Received: from exchfrnt01.primusnetworks.com (66.162.216.144)  by
>daedalus.apache.org with SMTP; 10 May 2002 21:00:47 -0000
>Received: from exchback.primusnetworks.com ([66.162.216.148]) by
>exchfrnt01.primusnetworks.com with Microsoft SMTPSVC(5.0.2195.2966); Fri,
>10 May 2002 16:00:52 -0500
>>From users-return-7037-khalid_kary Fri, 10 May 2002 14:02:21 -0700
>Mailing-List: contact users-help@httpd.apache.org; run by ezmlm
>Precedence: bulk
>list-help: <mailto:users-help@httpd.apache.org>
>list-unsubscribe: <mailto:users-unsubscribe@httpd.apache.org>
>list-post: <mailto:users@httpd.apache.org>
>Delivered-To: mailing list users@httpd.apache.org
>X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3
>content-class: urn:content-classes:message
>Message-ID:
><DE46FC93CAA6234BBD5655B2D59F40D55B01C9@exchback.primusnetworks.com>
>X-MS-Has-Attach:
>X-MS-TNEF-Correlator:
>Thread-Topic: apache 2.0.36 caching php 4.2.0 pages
>Thread-Index: AcH4WVdjKGA5tu5tQyWJRQJXRXSbqwADGtGg
>X-OriginalArrivalTime: 10 May 2002 21:00:52.0677 (UTC)
>FILETIME=[C530A750:01C1F865]
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>
>How do you have the PHP module set up in the Apache config?
>
>-----Original Message-----
>From: Csaba Gabor [mailto:csaba2000@yahoo.com]
>Sent: Friday, May 10, 2002 2:32 PM
>To: users@httpd.apache.org
>Subject: RE: apache 2.0.36 caching php 4.2.0 pages
>
>
>     Sorry that I cannot be of much help on this, but I also
>have Apache 2.0.36 and PHP 4.2.0 as a module on Win2K.
>However, I do not have SetInputFilter nor SetOutputFilter
>
>     I have just tested an index page of mine using the very nice
>cURL.exe program (from http://curl.haxx.se/) and repeated
>invocations (asking for both the header and the resultant
>page) produce the following headers (where the date varies):
>
>HTTP/1.1 200 OK
>Date: Fri, 10 May 2002 19:26:21 GMT
>Server: Apache/2.0.36 (Win32)
>Accept-Ranges: bytes
>Transfer-Encoding: chunked
>Content-Type: text/html; charset=ISO-8859-1
>Content-Language: en
>
>     Possibly there is something else at work here?
>              Csaba Gabor
>
>--- Jon Wagoner <jwagoner@wlion.com> wrote:
> > I installed 2.0.36, and same problem.
> >
> > Basically, the contents of this php page should change every time it is
>loaded.  However,
> > Apache is just returning a 304 Not Modified message, telling my browser
>to just pull it back
> > out of it's cache.  So apparently Apache is checking the date of the php
>file, and returning
> > the 304 message, but it should not be doing this for php pages (or any
>other parsed page).
> > Where can I change this behavior for the php pages? (I'd prefer to keep
>this behavior for
> > images, html, etc.)
> >
> > -----Original Message-----
> > From: David Jackson [mailto:david.j.jackson@pickledbeans.com]
> > Sent: Friday, May 10, 2002 12:01 PM
> > To: users@httpd.apache.org
> > Cc: david.j.jackson@pickledbeans.com; Jon Wagoner
> > Subject: Re: apache 2.0.35 caching php 4.2.0 pages
> >
> >
> > Sorry --
> > I thinks I may have mis-read you question.
> >
> > David
> >
> >
> > > Your top level DirectoryIndex in httpd.conf shuold look something like
> > > this:
> > >
> > > DirectoryIndex  index.html index.php
> > >
> > > And don't forget AddType entries.
> > >
> > >
> > > David
> > >
> > >
> > > p.s. 2.0.36 was released a coupleof day ago.
> > >
> > >
> > >> I have set up Apache 2.0.35 and PHP 4.2.0, and everything seems to be
> > >> working fine, mostly.  The only problem is that Apache is returning
> > >> 304 Not Modified messages for the php pages, so dynamic content is
> > >> getting lost.   I am using SetInputFilter and SetOutputFilter to
> > >> enable PHP in Apache. Anyone know how to tell Apache not to cache the
> > >> PHP pages?
> > >
> > >
> > > --
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> > --
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Shopping - Mother's Day is May 12th!
>http://shopping.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>




_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org





_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Olivier Hubert
Chef d'équipe informatique/IT Team leader
Groupe Constructo
(514) 856-6646
olivier.hubert@transc.com
www.constructo.ca 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message