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 2008/08/19 14:36:45 UTC

DO NOT REPLY [Bug 45023] DEFLATE preventing 304 NOT MODIFIED response

https://issues.apache.org/bugzilla/show_bug.cgi?id=45023


rahul <ra...@sun.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |RFC




--- Comment #4 from rahul <ra...@sun.com>  2008-08-19 05:36:44 PST ---
There is a workaround, 
If you are serving from a location say /js
You can use a configuration like below to switch ETag: $1-gzip to $1 

<Location /js>
RequestHeader  edit "If-None-Match" "^(.*)-gzip$" "$1"
Header  edit "ETag" "^(.*[^g][^z][^i][^p])$" "$1-gzip"
</Location>

(Perhaps this should be done from mod_deflate as input filter
with the condition that if Client requests with Accept-Encoding: gzip
only then modify If*match headers to their un-gzip values.)

(Also the current value of ETag (+gzip) is not RFC compliant, since RFC
mandates
a quoted string as the value of ETag. As the noted by john, -gzip should be
inside quotes.)


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

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