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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > Disable gzip for certain files (globally)?

Reply
 
Thread Tools Display Modes
  #1  
Old 06-15-2009, 05:27 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
Default Disable gzip for certain files (globally)?

Is there any way to disable gzip for certain file names (globally)? The latest version of WordPress (2.8) creates stylesheets like this:

Code:
link href='style' href='http://blah.com/wp-admin/load-styles.php?c=1&dir=ltr&load=dashboard,plugin-install,global,wp-admin&ver=abcdefghi'
The output is getting gzipped so the dashboard does not load right.

I found this code:

Code:
RewriteRule . - [E=no-gzip:1]
In another post, but we can't have every client adding this for every wordpress install.

We're also still running 3.x on this particular server.

TIA
Reply With Quote
  #2  
Old 06-15-2009, 08:35 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Found out the MIME type of the stylesheet generated by PHP script.
Change "compressible type" configuration accordingly.

http://www.litespeedtech.com/docs/we...pressibleTypes
Reply With Quote
  #3  
Old 06-15-2009, 08:42 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
Worked perfect. Thank you.
Reply With Quote
  #4  
Old 06-19-2009, 01:53 AM
brrr brrr is offline
Senior Member
 
Join Date: Aug 2007
Posts: 94
Out of curiosity, how did you end up specifying the compressible type in this instance?

It doesn't look like the Wordpress thing ends in CSS, so I would have thought a rule like !text/css as per mistwangs reference wouldn't have worked.
Reply With Quote
  #5  
Old 06-19-2009, 09:37 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
just check the Content-Type return in the response header with firebug.
Reply With Quote
  #6  
Old 07-10-2009, 07:16 AM
ch1v4s ch1v4s is offline
New Member
 
Join Date: Jul 2009
Posts: 7
Hi, i'm just using litespeed and upgrade to wp2.8.1, and i have the same problems, i added !text/css, !text/js, !text/javascript to compressible type but my dashboard still not load right. No formating panel and i cant switch from HTML/Visual.
Reply With Quote
  #7  
Old 07-10-2009, 10:42 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Maybe those has been cached, try cleaning up the cache.
Install FireBug and check the response header for those requests.
Reply With Quote
  #8  
Old 07-10-2009, 10:44 AM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
We actually tracked the issue down to the way that Fantastico installs the db. There is an optino that gets set 'wrong'. Here is the fix:

- You'll need to go into the wp_options table
- search for a row where the option_name = 'can_compress_scripts'

The option_value for that row will be a 1 (one). You can either delete the row or just update it and set to to 0 (zero).

That should fix you up if it's a Fantastico install. We worked with Netenberg and now they don't even insert this row. The first time you log as admin it will properly set the value.
Reply With Quote
  #9  
Old 07-10-2009, 10:47 AM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
@mistwang,

At least with Fantastcio it was a double compression issue. Because they were 'setting' the value rather than letting WP check it. Basically WP was doing the content compression and then LSWS was doing it a second time.
Reply With Quote
  #10  
Old 07-10-2009, 01:37 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
4.0.5 should have addressed that.
I might be wrong, from the bug report I got, it relates to "Content-Encoding: UTF-8" header set by PHP. LSWS wont double compress response body.
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:05 PM.



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