On 4 Jan 2014, at 00:20, Nick Kew wrote:
> On 3 Jan 2014, at 13:39, Thomas Eckert wrote:
> 
>> This does not solve the problem regarding .gz files however. They still 
>> suffer from a double-compression.
…
> I'd say any such fix must lie in adding a compression-sniffing option
> to mod_deflate:
>  - let the inflate filter sniff for compressed contents
>  - let the deflate filter sniff for already-compressed contents
> even if the headers fail to declare it.
> 
> An option with big "at your own risk" warnings.

Gzip compressed content sometimes gets served with no declared encoding and a 
media type of, e.g., “application/x-gzip”. I reckon that's more common than 
serving it as application/octet-stream or with no Content-Type: declared.

mod_deflate could use this information to avoid compressing the response, and 
without sniffing the content.

This more limited approach is already available through configuration, so maybe 
the way to handle this is via a change to documentation / default 
configuration, rather than code.

Any thoughts?

-- 
Tim Bannister – is...@jellybaby.net

Reply via email to