https://issues.apache.org/bugzilla/show_bug.cgi?id=45023
Summary: DEFLATE preventing 304 NOT MODIFIED response
Product: Apache httpd-2
Version: 2.2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_deflate
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
On my server, I recently added the DEFLATE filter for all
application/x-javascript files, and noticed that apache has stopped sending 304
NOT MODIFIED on ALL my js files *always*.
Observe this header trace:
-----------------------------------------
GET /main.js HTTP/1.1
Host: xxxxxxxxxxxxx
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14)
Gecko/20080404 Firefox/2.0.0.14
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
If-Modified-Since: Mon, 12 May 2008 16:09:00 GMT
If-None-Match: "44d0ac3fd1f00"-gzip
Cache-Control: max-age=0
HTTP/1.x 200 OK
Date: Sat, 17 May 2008 06:09:25 GMT
Server: Apache
Last-Modified: Mon, 12 May 2008 16:09:00 GMT
Etag: "44d0ac3fd1f00"-gzip
Accept-Ranges: bytes
Cache-Control: max-age=86400, must-revalidate, private
Expires: Sun, 18 May 2008 06:09:25 GMT
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 9797
Keep-Alive: timeout=2, max=299
Connection: Keep-Alive
Content-Type: application/x-javascript
-----------------------------------------
It seems to me, that a 304 NOT MODIFIED would have been the appropriate
response here.
Before I added DEFLATE to javascript files, the above response was always 304
NOT MODIFIED (except the first one).
Now with deflate, it is *always* 200 OK.
Is this by design, or is this a bug?
One thing to mention is - I have both mod_deflate and mod_expires statically
compiled into httpd.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]