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