[pmwiki-users] New skin: Pukka Float

Patrick R. Michaud pmichaud at pobox.com
Tue Apr 19 10:54:04 CDT 2005


On Mon, Mar 21, 2005 at 07:46:22AM +0000, Hans wrote:
> Saturday, March 19, 2005, 3:50:03 AM, Patrick wrote:
> > You can fix this by including more PHP header() calls in the script 
> > that tell the browsers it is okay to cache the output.  I'm just 
> > pointing out that as written in Pukka the css files probably aren't 
> > cached.
> 
> How do you tell the browser that it is okay to cache the script output?
> This might be the best way forward for this skin design and others
> loading multiple css modules.

If you want to allow proxies and browsers to cache the output, use

    header('Cache-Control: public');

If you want to allow browsers to cache the output but not any proxies, use

    header('Cache-Control: private');

This of course assumes that the contents of the PHP/CSS output is fairly
static -- i.e., it doesn't change based on pagenames, actions, login 
identities, etc.

Pm



More information about the pmwiki-users mailing list