[users@httpd] Problems with JS, IE 6.0 and mod_deflate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We are encountering a problem with IE 6.0 SP1 where it seems to have
problems with compressed data being served from the IBM HTTP Server
2.0.47 (Apache).  Using the mod_deflate option to compress static and
dynamic data on the run.



The problem is that the client side will "hang" and do nothing, we are
not sure what it could be but it looks like it is related to the
javascript files not being decompressed properly. The strange thing is
that the problem appears semi-randomly on one client.  We have tested
it on about 5 clients.  When the problem occurred we discovered that
the last line of a javascript file is missing, this line only contains
a closing bracket, }.  However, this file downloads correctly on other
clients and when mod_deflate is OFF.  So when using the built-in
script debugging tool provided with IE (or MS Office?) the execution
works correctly until the last executable point in the file (which is
not the last line), then the client application hangs, although IE is
responding correctly.  This leads me to the assumption that the file
is not decompressed properly on the client or not compressed properly
on the server (unlikely since it only occurs for one client).



Even IBM, the providers of this Apache server are unable to solve the
problem, see http://publib.boulder.ibm.com/httpserv/ihsdiag/deflate_diag.html
.  They reference an Apache module called mod_net_trace, but there are
no other references to it on the web.

On the Apache server we have enabled SSL (mod_ssl), client-side
caching (mod_expires) and compression (mod_deflate).  When we disable
mod_deflate the client will run correctly.  We have not tried
disabling mod_ssl or mod_expires.  Even when we disable compression
for HTML and JS files the problem still occurs.





########################################

# Apache settings for mod_deflate

LoadModule deflate_module modules/mod_deflate.so

<IfModule mod_deflate.c>

  SetOutputFilter DEFLATE



  #the two above compress everything unless excluded below

  SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary

  SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary

  SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary

  # Next two lines are just for testing

  SetEnvIfNoCase Request_URI \.js$ no-gzip dont-vary

  SetEnvIfNoCase Request_URI \.html$ no-gzip dont-vary



  DeflateFilterNote ratio

  DeflateCompressionLevel 9

</IfModule>

#########################################



Fixing this issue will help us enormously in providing clients with a
slow network a decent service.



Thank you,

Simon

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux