Make your handler aware of the mime type and suppress the
expiration/cache headers if it's image/* or something like that.

Meanwhile, back at the ranch...

> I have a directory of images use for navigation purposes, but when
> generating dynamic pages with:
> 
> ####################
> sub handler {
> $r = shift;
> 
> ...
> 
> $r->header_out("Pragma","no-cache");
> $r->header_out("Cache-control","no-cache");
> $r->no_cache(1);
> $r->send_http_header;
> 
> page to follow
> }
> ####################
> 
> It immediately expires the navigation images as well. A big performance
> drag.  Does there need to be some type of handler sniffing a navigation
> image directory to set some other expiration date other than 'now'?
> 
> Thanks for any help,
> Craig Bullock
> 
> 

--
Salon Internet                          http://www.salon.com/
  HTTP mechanic, Perl diver, Mebwaster, Some of the above
Ian Kallen <[EMAIL PROTECTED]> / AIM: iankallen / Fax: (415) 354-3326 

Reply via email to