WordPress.org

Ready to get started?Download WordPress

Forums

Gzip compressing without mod deflate? (4 posts)

  1. Jakob96
    Member
    Posted 8 months ago #

    Hello!
    I have a problem. My website loads quite slow, and that's why I want to have Gzip-compressing. But my web host has disable mod deflate but Gzip is enabled.

    So, is there anyway to have Gzip compressing without mod deflate? :)

  2. amsgator
    Member
    Posted 8 months ago #

    try adding this to your .htaccess file

    <ifModule mod_gzip.c>
    	mod_gzip_on Yes
    	mod_gzip_dechunk Yes
    	mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
    	mod_gzip_item_include handler ^cgi-script$
    	mod_gzip_item_include mime ^text/.*
    	mod_gzip_item_include mime ^application/x-javascript.*
    	mod_gzip_item_exclude mime ^image/.*
    	mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    </ifModule>

    Then check your website here to see if it worked: http://www.whatsmyip.org/http-compression-test/

  3. Jakob96
    Member
    Posted 8 months ago #

    Thank you! It worked, but I don't notice any big difference.

  4. amsgator
    Member
    Posted 8 months ago #

    It should tell you on that page how much the file size is reduced. Some things compress more than others. It could also be the server itself and things outside your control that your webhost handles.

    Test your site here and it will give you advice on how to make it faster: http://tools.pingdom.com/fpt/

    Click on "Performance Grade" and the arrows on the right side will expand the different tests and show you how to better optimize your site

Reply

You must log in to post.

About this Topic

Tags

No tags yet.