Dietrich Streifert wrote: > Hi Fabian, > > I've used compression by pre-compressing the generated application > javascript file via gzip and adding the following line in a .htaccess > file within the directory where the compressed file is in: > > AddEncoding x-gzip .gz .jsz > > I've named the compressed javascript file .jsz. >
Hello, I like it more if the compression is handled by the webserver configuration. For Tomcat, this can be set in the server.xml file in the conf folder. Look for this connector: <Connector port="8080" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" /> and add the following parameters: compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml,text/javascript" This will enable compression for all text, html and javascript files that are larger than 2kb. For Apache/Apache2, I haven't configured this myself, but there are various tutorials and howtos on the web that cover this, for instance for mod_deflate: http://httpd.apache.org/docs/2.0/mod/mod_deflate.html for mod_gunzip: http://www.innerjoin.org/apache-compression/howto.html Seems pretty easy. :) Regards, Daniel Haferkorn ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
