View Single Post
  #2  
Old 12-23-2011, 01:43 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Some searching shows this is a common problem with anything that tries to pre-cache .gz (also drupal)

http://www.litespeedtech.com/support...ead.php?t=5268

http://www.litespeedtech.com/support...ead.php?t=2010

http://www.litespeedtech.com/support...ead.php?t=3734

http://www.litespeedtech.com/support...ead.php?t=2226

I cannot find a way to trick litespeed into ignoring .gz files regardless of content-type

This does NOT solve the problem
Code:
<FilesMatch "(\.html\.gz|\.json\.gz)$">
Header set Content-Encoding "gzip"
</FilesMatch>
I guess I will have to force super-cache to not pre-gzip

Perhaps in 4.2 you can add compression exclusions based on physical file extension (not url but source)

Or filematch compression disabling via htaccess, maybe setting an ENV flag that litespeed will obey?


BTW the reason why you do not want to turn off the gzip management in wp-super-cache, is that on a busy site there may be hundreds if not thousands of files that are compressed and have to be expired periodically. Then litespeed has to do double the effort in watching for expired files, when they could have been purged directly in the super-cache directories. I use a cron to expire them efficiently so it doesn't overwhelm the OS.

Last edited by aww; 12-23-2011 at 01:52 AM..
Reply With Quote