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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > MultiViews automatic precompressed gzipping

Reply
 
Thread Tools Display Modes
  #1  
Old 03-29-2010, 10:17 AM
Moofius Moofius is offline
New Member
 
Join Date: Mar 2010
Posts: 2
Default MultiViews automatic precompressed gzipping

I have a folder with two files: test.css and test.css.gz.

Browser requests test.css
Apache checks if browser can accept gzip compressed files
Yes:
Apache checks if a precompressed file exists:
Yes:
Apache serves the test.css.gz
No:
Apache gzips test.css
No:
Apache serves test.css ungzipped
I want to be able to do that in Litespeed.
I have tried to do this with RewriteRules and stuff, the problem is that litespeed gives the wrong headers, instead of Content-Type text/css Content-Encoding gzip it gives Content-Type gzip. This might be my fault, but I have no idea how to fix this.
Reply With Quote
  #2  
Old 03-29-2010, 04:11 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
No need to do that, LiteSpeed create gzip cache for static files, just let LiteSpeed do that automatically.
Reply With Quote
  #3  
Old 03-29-2010, 05:25 PM
Moofius Moofius is offline
New Member
 
Join Date: Mar 2010
Posts: 2
Well then, how DO I enable gzip compression with the static gzip cache from a .htaccess file?
I have tested
SetOutputFilter DEFLATE
and/or
RewriteRule . - [E=no-gzip:1]
and/or
mod_gzip_on Yes
mod_gzip_item_include mime text/css
There is no information about enabling gzip in your wiki, and the search function in your documentation gives a 404.
Reply With Quote
  #4  
Old 04-02-2010, 10:52 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You can only disable gzip at directory level, not enable.
gzip should be enabled at global level in LSWS web console.
Reply With Quote
  #5  
Old 07-01-2011, 05:38 AM
janewalker123 janewalker123 is offline
New Member
 
Join Date: Jul 2011
Posts: 1
Quote:
Originally Posted by Moofius View Post
Well then, how DO I enable gzip compression with the static gzip cache from a .htaccess file?
I have tested
SetOutputFilter DEFLATE
and/or
RewriteRule . - [E=no-gzip:1]
and/or
mod_gzip_on Yes
mod_gzip_item_include mime text/css
There is no information about enabling gzip in your wiki, and the search function in your documentation gives a 404.
LSWS web console is the best option to gzip it. try it. and let me know
__________________
Wedding Hairstyles
Reply With Quote
  #6  
Old 04-24-2012, 05:10 AM
adhp123 adhp123 is offline
New Member
 
Join Date: Apr 2012
Posts: 5
I don't think you're going to save much though; with modern web servers, the cost of compressing the content on the fly is negligible
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 05:52 AM.



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