Received: by taz.hyperreal.com (8.6.12/8.6.5) id KAA05130; Fri, 7 Jun 1996 10:38:06 -0700 Received: from fully.organic.com by taz.hyperreal.com (8.6.12/8.6.5) with ESMTP id KAA05118; Fri, 7 Jun 1996 10:38:03 -0700 Received: (from brian@localhost) by fully.organic.com (8.6.12/8.6.12) id RAA19696; Fri, 7 Jun 1996 17:41:54 GMT Date: Fri, 7 Jun 1996 10:41:54 -0700 (PDT) From: Brian Behlendorf To: new-httpd@hyperreal.com Subject: Re: Apache and Proxy/Cache servers In-Reply-To: <199606071407.IAA18131> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com Actually, couldn't he use mod_expires? Brian On Fri, 7 Jun 1996, Rob Hartill wrote: > thanks, we'll consider your proposal and patch. > > > >Hi, > >I find some small, but unpleasent thing in apache_1.1b2 (and earlier). > >When query come through cache server and apache pass language negotiated > >doc, such document will cached by proxy/cache. > >In this case apache don't set Last-modified header, but it's not > >enough for all known proxy/cache servers (Netscape Proxy 2.0b4, > >Harvest cached/1.4b2, squid/1.0.beta11, CERN/3.0). > > > >From HTTP/1.0 specification: > > > >> 10.7 Expires > >[...] > >> > >> If the date given is equal to or earlier than the value of the Date > >> header, the recipient must not cache the enclosed entity. If a resource > >> is dynamic by nature, as is the case with many data-producing > >> processes, entities from that resource should be given an appropriate > >> Expires value which reflects that dynamism. > > > >There is a small fix of this for 1.1b2: > > > >--- http_protocol.c Fri Jun 7 11:46:21 1996 > >+++ http_protocol.c.orig Fri Jun 7 11:32:37 1996 > >@@ -651,10 +651,7 @@ > > r->sent_bodyct = 1; > > return; > > } > >-/* Need to set Expires date less than value of Date header for cache servers */ > >- if (r->no_cache) > >- table_set(r->headers_out, "Expires", > >- gm_timestr_822 (r->pool,time(NULL))); > >+ > > basic_http_header (r); > > > > set_keepalive (r); > >---------- cut here ----------- > > > >I also try to finish implimentation of charset negotiation in Apache server, > >because in russian language we have 5 different charset code pages, > >if some one made it, please let me know. > >If some one interested in this, i can post it after finishing. > >-- > >Dmitry Kryukov, Stack Ltd. dvk@stack.net > > > -- > Rob Hartill (robh@imdb.com) > The Internet Movie Database (IMDb) http://www.imdb.com/ > ...more movie info than you can poke a stick at. > --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-- brian@organic.com | We're hiring! http://www.organic.com/Home/Info/Jobs/