Author: max
Date: 2006-11-14 21:18:54 -0800 (Tue, 14 Nov 2006)
New Revision: 2533

Modified:
   openlaszlo/branches/legals/server/conf/server.xml
Log:
Change 20061114-maxcarlson-O by [EMAIL PROTECTED] on 2006-11-14 15:43:02 PST
    in /Users/maxcarlson/openlaszlo/legals

Summary: Configure tomcat to gzip javascript

New Features:

Bugs Fixed:  LPP-3079 - Configure tomcat to gzip javascript

Technical Reviewer: promanik
QA Reviewer: bshine
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: This chance successfully enables gzip compression for javascript in 
the version of tomcat packaged by the installer.  Tested using the OS-X 
installer built by 'ant dist-dev'

Tests: 'ant dist-dev', run the installer, startup the server, and from bash 
type: $ curl -I -H "Accept-Encoding: gzip,deflate" "http://local
host:8080/lps-4.0.x/demos/lzpix/app.lzx?lzt=object&lzr=dhtml"
HTTP/1.1 200 OK
Expires: Fri, 05 Oct 2001 00:00:00 GMT
Last-Modified: Tue, 14 Nov 2006 23:34:01 GMT
Content-Type: application/x-javascript
Transfer-Encoding: chunked
Content-Encoding: gzip
Vary: Accept-Encoding
Date: Tue, 14 Nov 2006 23:39:45 GMT
Server: Apache-Coyote/1.1

curl: (18) transfer closed with outstanding read data remaining

If gzip is working, you will see the 'Content-Encoding: gzip' header.  Also 
tested lzpix dhtml in safari, ie 6, firefox 1.5.0.8 mac and windows.

Files:
M      server/conf/server.xml

Changeset: 
http://svn.openlaszlo.org/openlaszlo/patches/20061114-maxcarlson-O.tar

Modified: openlaszlo/branches/legals/server/conf/server.xml
===================================================================
--- openlaszlo/branches/legals/server/conf/server.xml   2006-11-15 02:06:36 UTC 
(rev 2532)
+++ openlaszlo/branches/legals/server/conf/server.xml   2006-11-15 05:18:54 UTC 
(rev 2533)
@@ -1,10 +1,14 @@
 <Server port="8005" shutdown="SHUTDOWN">
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2006 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
   <Service name="LPS">
-    <Connector port="8080" />
+    <Connector port="8080"
+               compression="on"
+               compressionMinSize="2048"
+               noCompressionUserAgents="gozilla, traviata"
+               
compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"/>
     <Engine name="LPS" defaultHost="localhost">
       <Logger className="org.apache.catalina.logger.FileLogger" />
       <Host name="localhost" appBase="webapps" />


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to