[Laszlo-dev] For Review: Change 20061114-maxcarlson-O Summary: Configure tomcat to gzip javascript

Max Carlson max at openlaszlo.org
Tue Nov 14 15:58:58 PST 2006


Change 20061114-maxcarlson-O by maxcarlson at max-carlsons- 
computer.local 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


More information about the Laszlo-dev mailing list