springuser2014 / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

Gzip compression is ignored for chrome browser #174

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Using the chrome browser (version: 9.0 beta)
2.Fetching a css resources managed by wro
3.enabling gzip compression on the resource with wro

What is the expected output? What do you see instead?
I expect the resource to be gzip compressed when streamed to the client but 
gzip compression is ignored because the accept Accept-Encoding pattern is not 
correct.

What version of the product are you using? On what operating system?
wro version is: 1.3.4

Please provide any additional information below.

The problems is located in the method WroUtil.isGzipSupported. It detects the 
accept-encoding header but the pattern = PATTERN_GZIP is incorrect and does not 
recognize the chrome gzip header. The header value for chrome is 
"gzip,deflate,sdch".

Original issue reported on code.google.com by eli.will...@gmail.com on 25 Feb 2011 at 9:29

GoogleCodeExporter commented 9 years ago
sdch is probably only supported by chrome:

http://prxbx.com/forums/showthread.php?tid=1379

Original comment by eli.will...@gmail.com on 25 Feb 2011 at 9:31