httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45799] New: mod_deflate is conpressing wrong content
Date Sat, 13 Sep 2008 10:28:10 GMT

           Summary: mod_deflate is conpressing wrong content
           Product: Apache httpd-2
           Version: 2.2.3
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_deflate

I have installed mod_deflate on Apache lately, everything seems ok, except
there is one issue where some Content-type: application/x-download data are
getting compressed, even though I didn't specify it in the deflate
configuration. This causes the content-length to be set incorrectly to 0, which
causes the loading progress bar to be incorrect.

This problem started to occur when mod_deflate is enabled. I don't know if this
is a mod_deflate issue, or the interaction problems with some other Apache

The following is the deflate config, as well as the HTTP response header.

<IfModule mod_deflate.c>
  # Compress contents that of a certain type
  AddOutputFilterByType DEFLATE text/plain
  AddOutputFilterByType DEFLATE text/xml
  AddOutputFilterByType DEFLATE application/xhtml+xml
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE application/xml
  AddOutputFilterByType DEFLATE image/svg+xml
  AddOutputFilterByType DEFLATE application/rss+xml
  AddOutputFilterByType DEFLATE application/atom_xml
  AddOutputFilterByType DEFLATE application/x-javascript
  AddOutputFilterByType DEFLATE application/x-httpd-php
  AddOutputFilterByType DEFLATE application/x-httpd-fastphp
  AddOutputFilterByType DEFLATE application/x-httpd-eruby
  AddOutputFilterByType DEFLATE text/html

  # properly handle requests coming from behind proxies
  <IfModule mod_headers.c>
      Header append Vary User-Agent env=!dont-vary

  # Properly handle old browsers that do not support compression
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.0[678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html


(Status-Line)   HTTP/1.1 200 OK
Date    Sat, 13 Sep 2008 10:04:11 GMT
Server  Apache
X-Powered-By    PHP/5.1.6
Expires Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control   no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma  no-cache
content-disposition     attachment; filename=go.go
Content-Transfer-Encoding       binary
Vary    Accept-Encoding
Content-Encoding        gzip
Keep-Alive      timeout=15, max=100
Connection      Keep-Alive
Transfer-Encoding       chunked
Content-Type    application/x-download

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message