You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1996/06/07 16:07:10 UTC

Re: Apache and Proxy/Cache servers

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.

Re: Apache and Proxy/Cache servers

Posted by Brian Behlendorf <br...@organic.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/