Skip to main content

Unable to use Gzip mode with IE

  4 posts   Feedicon  
Replies: 3 - Last Post: August 08, 2014 10:03
by: icefox
showing 1 - 4 of 4
Posted: August 07, 2014 13:10 by StephDev
Hello,

I am using JAWR 3.5.2 with an Appfuse 1 (Tomcat, Spring, Struts) Java application.

When I set jawr.gzip.on=false it works on Internet explorer 8 and 11. But if I set it to "true", I get this error : "Invalid character"
When I look at the Javascript source, I see binary code, probably the zipped source.

On the other hand it works well (gzipped or not) on Firefox 31 and Chrome.

Any idea on this problem ?

Best regards.
Posted: August 07, 2014 15:41 by icefox
Hi,

I've tested a sample application using Jawr with IE 11 with on production mode.
It works perfectly.

I suppose that your issue is due to the JS resources that you're using.
There is perhaps a semi-colon which is missing at the end of a file which doesn't cause an issue when the file are loaded one by one (like in debug mode) but which cause an issue when the files are merged.

I hope that it will help you.

Cheers,
icefox
Posted: August 08, 2014 09:22 by StephDev
Our Appfuse app uses the GZIPFilter to compress JS (and other resources) on the fly.

When jawr.gzip.on=true the downloaded JS differs according to the User Agent :
- when requested from IE the JS is compressed TWICE => error
- when requested from Firefox, the JS is compressed once => OK

When jawr.gzip.on=false :
- when requested from IE the JS is compressed once => OK
- when requested from Firefox, the JS is compressed once => OK

So it looks like JAWR compression conflicts with GZIPFilter but only with IE.

For now I will disable JAWR compression.
Posted: August 08, 2014 10:03 by icefox
Hi,

The issue seems due to the fact that you're using the Jawr compression and the GZIPFilter compression.
The main difference, I'm seeing on this 2 compressions is that one is done once at the server startup for Jawr and the other is made on the fly for the GZipFilter.

I would suggest you to turn off the GZIPFilter as it will have more impact on request processing that the Jawr one.

Cheers,
icefox
Replies: 3 - Last Post: August 08, 2014 10:03
by: icefox
 
 
Close
loading
Please Confirm
Close