serving pre-compressed content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Does anyone have a well-tested and idiomatic Apache configuration to serve pre-compressed content? Vary header, Content-Type header, browser gotchas, and everything robustly sorted out?

The situation is that you have foo.css and foo.css.gz on disk, and want Apache to serve foo.css.gz directly if asked for foo.css and the clients accepts the compressed content.

I guess that's going to be based on content negotiation with MultiViews, but a google search suggests there are practical issues to get this right that may not be obvious at first.

And also a curiosity: After all these years, why doesn't mod_deflate do this by itself? Compressing with max ratio to disk on a first request, and serving the cached .gz in subsequent requests?

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux