GZIP compression on xo2

Status
Not open for further replies.

joshk005

New Member
Messages
9
Reaction score
0
Points
1
Hi there! I have a website on xo2 and I'm having trouble enabling GZIP compression. I can't seem to do it with any of the normal .htaccess methods, and I've tried both mod_deflate and mod_gzip.
However, using
PHP:
<? ob_start("ob_gzhandler"); ?>
at the top of my PHP pages seems to work.
What's up?

Here's my .htaccess:
Code:
mod_gzip_item_include file \
    \.(?:html|css|js)$
mod_gzip_item_exclude file \
    \.(?:exe|t?gz|zip|bz2|sit|rar)$

My website URL is http://n7.jsafive.x10.mx/.
Thanks for your time.

~jsa
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
gzip compression is a server-side setting with litespeed, and it's currently disabled on xo2/3 due to some issues with litespeed. I will re-enable it today.
 

joshk005

New Member
Messages
9
Reaction score
0
Points
1
OK, thanks very much. I've done some PHP wizardry to optimise my page and I get 99/100 on Google PageSpeed Insights. Next up: Minify HTML! :D
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
Sorry about this. Other things came up. I'll work on it now.
 
Status
Not open for further replies.
Top