LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Apache Migration/Compatibility (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=24)
-   -   MultiViews automatic precompressed gzipping (http://www.litespeedtech.com/support/forum/showthread.php?t=3922)

Moofius 03-29-2010 10:17 AM

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.

mistwang 03-29-2010 04:11 PM

No need to do that, LiteSpeed create gzip cache for static files, just let LiteSpeed do that automatically.

Moofius 03-29-2010 05:25 PM

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.

mistwang 04-02-2010 10:52 AM

You can only disable gzip at directory level, not enable.
gzip should be enabled at global level in LSWS web console.

janewalker123 07-01-2011 05:38 AM

Quote:

Originally Posted by Moofius (Post 19262)
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

adhp123 04-24-2012 05:10 AM

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


All times are GMT -7. The time now is 07:52 AM.