Re: caching dynamic content in the reverse proxy

2002-09-06 Thread Charlie Garrison

Good afternoon,

On 6/9/02 at 12:12 AM, pascal barbedor [EMAIL PROTECTED] wrote:

but any content sent by a modperl handler is not cached although I set headers 
Last-Modified and Expires to compatibles dates (with Apache::Util::ht_time) and 
Cache-content to public from the modperl handler with $r-header_out..

Has any one succeeeded is caching dynamic content in this configuration

When I have caching problems, I run my pages through cachability to find out
where they are failing. Check it out at:

  http://www.web-caching.com/cgi-web-caching/cacheability.py

It reports on page headers as well as gives useful info like the following:

  This object doesn't have any explicit freshness information set, so a
  cache may use Last-Modified to determine how fresh it is with an
  adaptive TTL (at this time, it could be, depending on the adaptive
  percent used, considered fresh for: 2 weeks 20 hr (20%), 5 weeks 2
  days (50%), 10 weeks 4 days (100%)). It can be validated with
  Last-Modified.

The site is a great resource for a variety of caching issues.

Charlie
-- 
   Charlie Garrison[EMAIL PROTECTED]
   PO Box 141, Windsor, NSW 2756, Australia 



caching dynamic content in the reverse proxy

2002-09-05 Thread pascal barbedor



Hi

following a recipe in modperl doc I have setup a 
front end plain apache "reverse proxy" + a back end modperl 
enabled.

the front end has proxy cache enabled.
any static content that is served by a 
default-handler from the backend server is well cached by the front 
one.

but any content sent by a modperl handler is not 
cached although I set headers Last-Modified and Expires tocompatibles 
dates (with Apache::Util::ht_time) and Cache-content to public from the modperl 
handler with $r-header_out..


Also I wondered is the formatting of dates by 
ht_time (mer., 12 sept. 2002 12:20:01 GMT) by default is the "RFC one" ie the 
abbreviation point after day and month needed or not ?
in any case i have tried both form without success 
for caching.


Has any one succeeeded is caching dynamic content 
in this configuration

thanks
pascal

winxp
perl561/modperl126/apache1326