LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > gzip compression wildcards *STILL* not working

Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2007, 05:11 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Default gzip compression wildcards *STILL* not working

I reported this back with 3.1 and it's still not working in 3.2

under:
/config/confMgr.php?m=serv&p=tuning&t=SERV_TUNING_GZIP&a=e

text/* is NOT being obeyed

For example I discovered text/javascript was not being compressed and I had to add it manually, in addtion to text/*

But now I am having an additional problem in that .htc files which are mime type "text/x-component" do not get compressed even when text/x-component is added to the list. The analyzer I use to determine this shows the proper mime type is being sent and will always accept compression if the server offers it. The filesize is larger than the minimum set for compression.

Last edited by aww; 07-23-2007 at 05:35 AM..
Reply With Quote
  #2  
Old 07-23-2007, 12:19 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
You need to add those types to LiteSpeed's MIME configuration file through our web admin interface.
Reply With Quote
  #3  
Old 07-23-2007, 10:55 PM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Sorry if I am not being clear, but I did indeed add them through the admin interface and did the graceful restart.

Wildcards still do not work.

Please test the standard version in your lab and confirm?
Reply With Quote
  #4  
Old 07-24-2007, 01:51 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Are you sure. It should be added to the server wide MIME configuration, vhost level or context level does not work.
Reply With Quote
  #5  
Old 07-24-2007, 08:56 PM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
I posted the url to show you the menu that it's under.
It's under tuning.

/config/confMgr.php?m=serv&p=tuning&t=SERV_TUNING_GZIP&a=e
Reply With Quote
  #6  
Old 07-25-2007, 08:48 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
No, it should be under Server->General->MIME File, add your MIME there
Reply With Quote
  #7  
Old 07-25-2007, 11:26 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
litespeed supports the "addtype" directive and I've done it in .htaccess for backwards compatibility with apache

If it's added by addtype, shouldn't the gzip compression be enforced if the mime is in litespeeds compression list? That would mimic apache's mod_gzip behavior/directives.
Reply With Quote
  #8  
Old 07-25-2007, 12:27 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Type added through AddType is not checked for compression. Only globally defined types are. It does not hurt anything by adding the type globally.
We will address this issue later.
Reply With Quote
  #9  
Old 07-25-2007, 09:02 PM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Ah, so technically it is a bug, since it doesn't mimic apache's compatibility. At least I know now that I'm not going crazy and know what's causing this.

Optionally, in a future version you might want to consider supporting mod_gzip directives in httpd.conf/htaccess?

Here's a list of them with definitions:
http://schroepl.net/projekte/mod_gzip/config.htm
Litespeed already has control over almost all those options so technically you could mimic it if you wanted.
Reply With Quote
  #10  
Old 07-27-2007, 02:00 AM
subBlue subBlue is offline
Member
 
Join Date: Oct 2006
Posts: 42
Default YSlow for profiling in Firebug and GZip

I've been using the new YSlow addon for performance profiling in Firebug.

None of the CSS or JS files served by my site are getting gzipped despite having the default settings of text/*, application/x-javascript, application/xml in the list of compressible types. I also tried adding text/css directly to the list but it still wouldn't compress the CSS.

The header settings for the CSS files are defined as text/css and that is listed in the recognised mime-types in LS, so I don't know why the CSS isn't getting compressed. The main page body is getting compressed though.

The site is a Rails app running with LS 3.2-ent, but we are seeing this behaviour with all four of our servers using LS, which have pretty much the default configuration settings. Any suggestions here?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:11 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.