Chris, your explanation was just what i needed to really understand my problem :-)
For the moment, i want to cache the HTTP Response. So, if iīm correct, the header that i sent to the list should do the job. I have: Apache Web Server 1.3.x A Reverse Proxy The client(IE 5.00) I thought that, if the responses were cached, the access.log file would have 304 codes on the responses for php scripts. Is that correct? Well, if it is, thatīs not happening. If its not, iīm pretty lost :-) Thank you for the explanation! Luanna -----Mensagem original----- De: Chris Shiflett [mailto:[EMAIL PROTECTED]] Enviada em: sexta-feira, 22 de novembro de 2002 17:32 Para: Luanna Silva; [EMAIL PROTECTED] Assunto: Re: [PHP] RE: How to cache PHP on Apache Luanna, This response allows caching, but the cached response is only considered fresh for one hour (which might be appropriate for you), as is determined by both the Expires header and the max-age attribute of the Cache-Control header. The Pragma header is defined under HTTP/1.0 and is only used when backwards compatibility with HTTP/1.0 Web agents is required (meaning, Web agents that do not support HTTP/1.1). The absence of Pragma will not restrict caching in any way, however, even with an HTTP/1.0 cache. You can use PHP's header() function to manipulate headers. One thing I am not clear on is whether this type of caching is what you were originally inquiring about. The HTTP headers specify what restrictions are placed on the ability for a caching system to cache this HTTP response. It has nothing to do with caching the PHP script in any way on the server. If that latter sounds more like what you are interested in, there are several products that can help with this also. One is Zend Cache. Chris --- Luanna Silva <[EMAIL PROTECTED]> wrote: > My header looks just like this: > > HTTP/1.0 200 OK > Date: Sat, 16 Nov 2002 16:45:29 GMT > Server: Apache/1.3.20 (Win32) PHP/4.0.6 > Cache-Control: public, max-age=3600 > Expires: Sat, 16 Nov 2002 17:45:29 GMT > X-Powered-By: PHP/4.0.6 > Content-Type: text/html > > And yes, we use sessions. > > So, setting session_cache_limiter() to "public" should solve my > problem? > > The pragma header is what is missing? > > Instead of changing the code, could i use Apacheīs mod_header to > do the job? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php