* on the Thu, Jun 23, 2005 at 07:43:08AM -0400, Geoffrey Young wrote:
> intelligently worrying about the browser cache will help your performance a
> great deal. there's an entire section in the perl.apache.org docs about it.
This is the logic I use. It may help someone.
Where $cache is the num
Foo Ji-Haw wrote:
> Hello Perrin,
>
> Thanks for the tip. I am just surprised that setting dynamic pages to
> expire immdiately is not a common line in the code for developers.
$r->no_cache(1);
> Don't
> we want them (pages) to expire immediately, instead of worrying whether
> the browser wil
Hello Perrin,
Thanks for the tip. I am just surprised that setting dynamic pages to
expire immdiately is not a common line in the code for developers. Don't
we want them (pages) to expire immediately, instead of worrying whether
the browser will cache the page? Or am I missing something here?
On Thu, 2005-06-23 at 12:16 +0800, Foo Ji-Haw wrote:
> $r->headers_out->add('Expires'=>CGI::Util::expires('now','http'));
>
> Notice that I have to 'use CGI::Util' to set this to work. CGI::Util
> does not expose the function, but it seems to work quite well.
>
> I am sure there is a better way
Hello guys,
For the newbies out there, this is one way (though arguably unorthodox)
to set the Expire header on your page:
$r->headers_out->add('Expires'=>CGI::Util::expires('now','http'));
Notice that I have to 'use CGI::Util' to set this to work. CGI::Util
does not expose the function, but