[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Enabling GZIP compression on magento/siteground

Posted on 2012-04-05
4
Medium Priority
?
1,085 Views
Last Modified: 2012-04-19
Experts,

I have a site hosted with siteground:
http://www.chic-osity.co.uk

I have followed steps provided by the hosting company to enable GZIP compression, namely adding the block below to .htaccess
<IfModule mod_gzip.c>
mod_gzip_static_suffix .gz
AddEncoding gzip .gz
AddEncoding gzip .gzip
mod_gzip_on YES
mod_gzip_handle_methods GET
mod_gzip_temp_dir /tmp
mod_gzip_can_negotiate Yes
mod_gzip_dechunk Yes
mod_gzip_send_vary On
mod_gzip_update_static No
mod_gzip_keep_workfiles No
mod_gzip_minimum_file_size 250
mod_gzip_maximum_file_size 1048576
mod_gzip_maximum_inmem_size 60000
mod_gzip_min_http 1000
mod_gzip_item_exclude reqheader "User-agent: Mozilla/4.0[678]"
mod_gzip_item_exclude file .js$
mod_gzip_item_exclude file .css$
mod_gzip_item_exclude mime ^application/pdf$
mod_gzip_item_exclude mime ^image/
mod_gzip_item_exclude mime ^application/x-javascript$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include file .html$
mod_gzip_item_include file .pl$
mod_gzip_item_include file .cgi$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^httpd/unix-directory$
mod_gzip_item_include mime ^application/postscript$
</IfModule>

Open in new window


Then adding the following to the top of index.php:
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>

Open in new window


They advise that gzip is working, because the following site states it to be the case:
http://www.whatsmyip.org/http-compression-test/

However, when i load the page in firebug, then perform a page speed analysis, it states that it is not enabled.

I am keen to do everything that i can to optimize the sites performance and increase load time, therefore any suggestion on how to do this would be greatly apprciated.

Regards
Easynow
0
Comment
Question by:Dean OBrien
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:LinuxGuru
ID: 37820633
Hi,

Could you please analyse the site in following url?

http://www.gidnetwork.com/tools/gzip-test.php

I have checked the server and gzip is enabled. Not sure about the coding part. You need to wait for some other experts to answer regarding this.
0
 
LVL 12

Author Comment

by:Dean OBrien
ID: 37821473
The link you provided states it is unable to uncompress the files. Any suggestions?
0
 
LVL 13

Accepted Solution

by:
LinuxGuru earned 2000 total points
ID: 37822153
I could see gzip showing as enabled. Are you checking the main url or some other url? Check the attached screen shot.

Gzip Test
0
 
LVL 12

Author Closing Comment

by:Dean OBrien
ID: 37865133
Sorry for delay
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question