You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/03/08 12:15:57 UTC

DO NOT REPLY [Bug 38892] New: - Content negotiation guide: SetEnvIf example incomplete (leads to caching problems)

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38892>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38892

           Summary: Content negotiation guide: SetEnvIf example incomplete
                    (leads to caching problems)
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
               URL: http://httpd.apache.org/docs/2.2/content-
                    negotiation.html#better
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Documentation
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: richard@2006.atterer.net


Hello,
in section "Fiddling with Quality Values", the following example is given, it
allows negotiation to depend on the contents of a cookie:

SetEnvIf Cookie "language=(.+)" prefer-language=$1

I suggest to change this example to:

  Example:
  SetEnvIf Cookie "language=([a-z-]+)" prefer-language=$1
  Header append Vary cookie

  The addition of the value "cookie" to the "Vary:" header is necessary
  for correct caching of the different versions of the page by browsers
  and HTTP proxies.

It would be nice if Apache automatically added the header when you use SetEnvIf
in this way... oh well.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 38892] - Content negotiation guide: SetEnvIf example incomplete (leads to caching problems)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38892>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38892


slive@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From slive@apache.org  2006-06-30 18:27 -------
Yes, I agree it is better to be more precise with the examples so I've added the
Vary header.  Thanks.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 38892] - Content negotiation guide: SetEnvIf example incomplete (leads to caching problems)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38892>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38892





------- Additional Comments From richard@2006.atterer.net  2006-04-20 22:56 -------
>   SetEnvIf Cookie "language=([a-z-]+)" prefer-language=$1
>   Header append Vary cookie

I realize this is also a fairly problematic solution: If a site uses cookies
with session IDs, then images and other static content will be stored multiple
times by proxies! :-(  Unfortunately, only a workaround is possible:

SetEnvIf Request_URI \.(jpe?g|gif|png|exe|bin|zip|bz2|t?gz|swf)$ staticReq
Header onsuccess append Vary cookie env=!staticReq


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org