You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Spartanicus <sp...@ntlworld.ie> on 2006/10/31 12:35:52 UTC

[users@httpd] Allowing negotiated content to be cached

I'm experimenting with multiviews to get more user friendly URLs, and so
that I can change "foobar.htm" to "foobar.cgi" without causing problems
or requiring a fix.

Consequently normally the document returned should be the same so I
added "CacheNegotiatedDocs On" for HTTP/1.0 requests.

What is the best way to allow these types of "negotiated" documents to
be cached as if they weren't negotiated for HTTP/1.1 requests?

-- 
Spartanicus

(email whitelist in use, non list-server mail will not be seen)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Allowing negotiated content to be cached

Posted by Joshua Slive <jo...@slive.ca>.
On 10/31/06, Spartanicus <sp...@ntlworld.ie> wrote:
> I'm experimenting with multiviews to get more user friendly URLs, and so
> that I can change "foobar.htm" to "foobar.cgi" without causing problems
> or requiring a fix.
>
> Consequently normally the document returned should be the same so I
> added "CacheNegotiatedDocs On" for HTTP/1.0 requests.
>
> What is the best way to allow these types of "negotiated" documents to
> be cached as if they weren't negotiated for HTTP/1.1 requests?

You need to examine exactly what response headers apache is sending
for these requests and make adjustments as required.  For example, you
might find
SetEnv force-no-vary
or
Header unset Vary
might help.  But I haven't tested that.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org