From: Tony Finch Date: Tue, 21 Mar 2000 18:41:30 +0000 (+0000) Subject: Explain the changed syntax of CacheNegotiatedDocs X-Git-Tag: APACHE_2_0_ALPHA_2~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c7584432035240139a0da6c85602891c25caec6;p=apache Explain the changed syntax of CacheNegotiatedDocs git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84814 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_negotiation.html b/docs/manual/mod/mod_negotiation.html index 96222acb22..cbb026d22d 100644 --- a/docs/manual/mod/mod_negotiation.html +++ b/docs/manual/mod/mod_negotiation.html @@ -115,7 +115,11 @@ requirements, and returns that document.

Syntax: CacheNegotiatedDocs
+>Syntax: CacheNegotiatedDocs boolean
+Default: CacheNegotiatedDocs off
HREF="directive-dict.html#Compatibility" REL="Help" >Compatibility: CacheNegotiatedDocs is only available -in Apache 1.1 and later.

+in Apache 1.1 and later. The syntax changed in version 2.0.

If set, this directive allows content-negotiated documents to be cached by proxy servers. This could mean that clients behind those proxys could retrieve versions of the documents that are not the best match for their abilities, but it will make caching more efficient. -

-This directive only applies to requests which come from HTTP/1.0 browsers. +

This directive only applies to requests which come from HTTP/1.0 browsers. HTTP/1.1 provides much better control over the caching of negotiated documents, and this directive has no effect in responses to HTTP/1.1 requests. +

Prior to version 2.0, CacheNegotiatedDocs did not take an argument; +it was turned on by the presence of the directive by itself.

LanguagePriority

diff --git a/modules/mappers/mod_negotiation.c b/modules/mappers/mod_negotiation.c index ca98d3937b..8d66fe6687 100644 --- a/modules/mappers/mod_negotiation.c +++ b/modules/mappers/mod_negotiation.c @@ -133,7 +133,6 @@ static int do_cache_negotiated_docs(server_rec *s) static const command_rec negotiation_cmds[] = { - /* TODOC: CacheNegotiatedDocs now takes a FLAG argument */ {"CacheNegotiatedDocs", cache_negotiated_docs, NULL, RSRC_CONF, FLAG, "Either 'on' or 'off' (default)"}, {"LanguagePriority", set_language_priority, NULL, OR_FILEINFO, ITERATE,