Pre-encoding vs. mod_deflate
Tuesday, June 3rd, 2008Recently I configured Apache to serve pre-encoded files with encoding-negotiation. In theory this should be faster than using mod_deflate, which has to re-encode every hit, but testing was in order.
My mod_deflate setup consisted of a directory with this .htaccess:
AddOutputFilterByType DEFLATE application/x-javascript
BrowserMatch \bMSIE\s[456] no-gzip
BrowserMatch \b(SV1|Opera)\b !no-gzip
and a pre-minified version of jquery-1.2.3 (54,417 bytes) saved as “before.js”. [...]
