Project

General

Profile

css files broken if mod_compress enabled on lighttpd 1.4.26

Added by telix over 13 years ago

Hello,
I enabled mod_compress on my server: www.telix.pl on lighttpd 1.4.26 running on OpenSuse 11.3. And occasionally there are some broken css files, which are not accessible to some visitors. Recently I got the same error on my own machine Chrome and Firefox Browser:

net::ERR_CONTENT_DECODING_FAILED

My mod_compress configuration is (was - I disabled it) following:

compress.cache-dir         = cache_dir + "/compress" 

##
## FileTypes to compress.
##
compress.allowed-encodings = ("gzip","deflate")
compress.filetype          = ("text/plain", "text/html" )

##
## Maximum filesize that will be compressed.
## Default is 0, which means unlimited file size.
##
#compress.max-filesize = 0

Can somebody help me to fix that issue ?


Replies (3)

RE: css files broken if mod_compress enabled on lighttpd 1.4.26 - Added by stbuehler over 13 years ago

check your mimetypes. ("text/plain", "text/html" ) doesn't include css, so if your css got compressed, you have the wrong mimetype for it.

RE: css files broken if mod_compress enabled on lighttpd 1.4.26 - Added by telix over 13 years ago

The mime-type is following:

  ".css"  => "text/css",

I didn't want to compress the css. However, if mod_compress is enabled the files are sometimes broken.

RE: css files broken if mod_compress enabled on lighttpd 1.4.26 - Added by stbuehler over 13 years ago

Then i don't think that your issue is (directly) related to mod_compress.

    (1-3/3)