httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xavier Noria <...@hashref.com>
Subject [users@httpd] serving pre-compressed content
Date Thu, 06 Oct 2011 16:36:17 GMT
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?

Mime
View raw message