On Aug 15, 3:33 pm, xavier <[EMAIL PROTECTED]> wrote: > This means that : > 1) you assume all clients are able to deal with compressed pages
No - PHP does that negotiation automatically (supposedly) and ignores the gzip if it thinks the client can't handle it. > 2) your server is going to compress it for each visitor. Why wouldn't they? > 3) the headers might or might not be properly dealing with its type. i don't understand what you mean by this. The HTTP response header from the PHP script? > With mod_rewrite, they are nice tricks to have a compressed file and > serve it instead of the normal file if needed. > > Have you tried compressing the js file and send it instead of the file > without using mod_compress/mod_rewrite ? i haven't tried that because i wouldn't expect sub-optimal browsers to be able to grok it (by that i mean MSIE/Safari/Opera). Since i don't have those browsers to test, i don't want to try anything too tricky which might break those browsers. @Joel/Brandon: after more experimentation, i am getting better compression if i use the YUImin and ob_gzhandler. The difference is minimal compared to jsmin, but there is a difference. e.g. jquery 1.1.3.1: YUImin + gzip: 10896 bytes jsmin + gzip: 11505 packer + gzip: 11486