httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: Redirect to negotiated docs (PR#649)
Date Sat, 23 Aug 1997 03:43:36 GMT
+1

Dean

On Thu, 21 Aug 1997, Paul Sutton wrote:

> Ok, how about this. As a reminder, mod_negotiation marks *all* responses
> to HTTP/1.0 (and earlier) requests as being uncacheable, unless explicitly
> told to make them cacheable with CacheNegotiatedDocs. This is to prevent
> (HTTP/1.0) browsers and proxies caching one variant which may not be the
> correct one for subsequent requests. The issue is that if you are using
> mod_negotiation in a trivial way to map (say) requests for index onto
> index.html *with no other variants*, Apache makes your responses
> non-cacheable when they probably are safely cacheable. 
> 
> This patch makes responses from mod_negotiation cacheable in the following
> circumstances:
> 
>   *  Variants are found by multiviews (i.e. looking on the disk, rather
>      than reading a .var file) AND
>   *  there was only one matching variant found on disk AND
>   *  request version is HTTP/1.0 or earlier
> 
> (responses to HTTP/1.1 clients are not forced to be uncacheable in any
> cases since HTTP/1.1 requires clients to know enough to determine if a
> negotiated resource is cacheable).
> 
> //pcs


Mime
View raw message