Bug 47253

Summary: conditional request fails using deflate_module
Product: Apache httpd-2 Reporter: Edgar Ehritt <e.ehritt>
Component: CoreAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED FIXED    
Severity: normal Keywords: RFC
Priority: P2    
Version: 2.2.11   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Bug Depends on: 39727    
Bug Blocks:    

Description Edgar Ehritt 2009-05-22 13:56:26 UTC
https://issues.apache.org/bugzilla/show_bug.cgi?id=39727 is past, but it
would seem Apache do not understand its own new generated values with suffix
"-gzip" of Etag received in If-None-Match header. Each resource at each
request is compressed on-the-fly. Status 304 respose does not occur.

Example configuration: =====================================================

<FilesMatch "\.(css|...)$">
	SetOutputFilter	DEFLATE
</FilesMatch>

HTTP request and response: =================================================

GET /manual/style/css/manual.css HTTP/1.1
Host: server.tld
User-Agent: Firefox/3.0
Accept: text/css,*/*;q=0.1
Accept-Language: de,de-de;q=0.8,en;q=0.5,en-us;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer	http://server.tld/manual/mod/core.html
If-Modified-Since: Wed, 12 Jul 2006 03:20:01 GMT
If-None-Match: "677d6-48f2-41859ec369a40"-gzip
Cache-Control: max-age=0

HTTP/1.1 200 OK
Date: Fri, 22 May 2009 19:57:07 GMT
Server: Apache
Cache-Control: no-transform, max-age=15
Last-Modified: Wed, 12 Jul 2006 03:20:01 GMT
Etag: "677d6-48f2-41859ec369a40"-gzip
Accept-Ranges: bytes
Expires: Fri, 22 May 2009 19:57:22 GMT
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 4088
Keep-Alive: timeout=30, max=91
Connection: Keep-Alive
Content-Type: text/css; charset=iso-8859-1


Identically there are values of If-Modified-Since and If-None-Match as well as Last-Modified and Etag.
Comment 1 Ruediger Pluem 2009-05-23 01:37:04 UTC
This will be fixed in the next 2.2.x release due to r761835.