On labs, http headers do not have
Content-Encoding: gzip
when serving up legals-nightly. (Sample headers below.) If I
understand Henry correctly, this means we're not gzipping.
Here's some of our server.xml on labs which I think explains why
we're not gzipping. Sounds like we should turn on gzipping on tomcat
labs.
<Connector port="9080"
...snip...
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml"
/>
Headers:
http://labs.openlaszlo.org/legals-nightly/demos/calendar/calendar.lzx?
lzt=lfc&lzr=dhtml&_canvas_debug=false
GET /legals-nightly/demos/calendar/calendar.lzx?
lzt=lfc&lzr=dhtml&_canvas_debug=false HTTP/1.1
Host: labs.openlaszlo.org
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:
1.8.1) Gecko/20061010 Firefox/2.0
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://labs.openlaszlo.org/legals-nightly/demos/calendar/
calendar.lzx?lzr=dhtml&lzt=html
Cookie: JSESSIONID=374DAAC9F38E13710D3FA08960E08301;
__utma=185311991.355612387.1160507693.1161971623.1163012931.7;
__utmz=185311991.1163012931.7.2.utmccn=(referral)|
utmcsr=laszlosystems.com|utmcct=/partners/overview|utmcmd=referral
HTTP/1.x 200 OK
Date: Mon, 13 Nov 2006 20:44:21 GMT
Server: Apache/2.0.54 (Mandriva Linux/PREFORK-13.2.20060mdk)
Expires: Fri, 05 Oct 2001 00:00:00 GMT
Keep-Alive: timeout=15, max=96
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/x-javascript
On Nov 13, 2006, at 8:42 AM, Henry Minsky wrote:
here's a note I sent in March with a config for tomcat
Instructions:
Restart the Tomcat, and then you can see if it is working by clearing
the browser cache, and
loading the demo dhtml app. In LiveHTTPHeaders in Firefox you should
see headers like this
GET /lps-legals/lps/includes/lfc/lzdataset.js HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost:8080/lps-legals/apps/et/app.lzx?
lzt=dhtml&debug=y&lzr=dhtml
HTTP/1.x 200 OK
Etag: W/"12841-1141441325754"
Last-Modified: Sat, 04 Mar 2006 03:02:05 GMT
Content-Type: text/javascript
Transfer-Encoding: chunked
Content-Encoding: gzip
Vary: Accept-Encoding
Date: Sat, 04 Mar 2006 22:49:45 GMT
Server: Apache-Coyote/1.1
server.xml:
<Service name="Catalina">
<Connector acceptCount="100" connectionTimeout="20000"
disableUploadTimeout="true" port="8080" redirectPort="8443"
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml,text/
javascript,application/x-javascript,application/javascript"
</Connector>
<Connector acceptCount="100" disableUploadTimeout="true"
port="8443" scheme="https" secure="true" sslProtocol="TLS"
keystoreFile="conf/lzkeystore" keystorePass="changeit"
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml,text/
javascript,application/x-javascript,application/javascript"
</Connector>
On 11/13/06, David Temkin <[EMAIL PROTECTED]> wrote:
When documenting this, we need to discuss, right up front, the
importance of having gzip compression switched on for the HTTP
server. There is an enormous size difference between compressed and
uncompressed, and this isn't an issue for SWF, which has internal
gzip compression.
When serving from LPS, the Javascript should be automatically
gzipped. It is, right?
- D.
On Nov 13, 2006, at 7:52 AM, Henry Minsky wrote:
> Can anyone tell me what they think is required for DHTML SOLO
deploy?
> That is, what
> auxiliary include files are needed?
>
> Since we serve up the LFC and the app as separate files in
DHTML, the
> new SOLO wizard will at least have to write out copies of static
files
> for these.
>
> For reference the current swf solo wizard makes
>
> 1) recursive copy of all files in the directory in which the app
> resides, and also includes
> 2) An html wrapper file (app.swf.html)
>
> 3) these include files
> filenames.add("lps/includes/embed.js");
> filenames.add("lps/includes/h.html");
> filenames.add("lps/includes/h.swf");
> filenames.add("lps/includes/vbembed.js");
>
> I will make a master list of what needs to be packaged up, and make
> fork a version of the
> SWF solo deployment tool for DHTML.
>
>
>
>
> --
> Henry Minsky
> Software Architect
> [EMAIL PROTECTED]
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]