httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45023] DEFLATE preventing 304 NOT MODIFIED response
Date Tue, 19 Aug 2008 12:36:45 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45023


rahul <rahul@sun.com> changed:

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




--- Comment #4 from rahul <rahul@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


Mime
View raw message