Results 1 to 6 of 6

Thread: Page Speed says I need to enable compression (Deflate). How do I do this

  1. #1

    Default Page Speed says I need to enable compression (Deflate). How do I do this

    How do I enable compression on Bluehost hosted site?

    Thanks

  2. #2

    Default

    When you login to cPanel, look for the "Optimize Website" link.
    Matt

    My life can be summed up in one word, "indescribable".

  3. #3

    Default

    Thanks for the reply!

    I finally figured that out. Unfortunately, after many live chat sessions with support, I was told that the server decides when to compress and when not to. This is no good.

    Is there any other way to compress my site so that my google page speed will be in the 90s? I would really like to get that page speed thing nailed down, but it seems impossible on blue host.

    Thanks!

  4. #4
    Join Date
    Apr 2008
    Location
    Morgan Hill, CA
    Posts
    874

    Default

    Quote Originally Posted by djmatt View Post
    When you login to cPanel, look for the "Optimize Website" link.
    When the heck did they add that button? (I really wish Bluehost would announce changes such as this.) Do you know if it adds code to your .htaccess file?

  5. #5

    Default

    Yes it adds this code to your .htaccess file in your root:

    Code:
    <IfModule mod_deflate.c>
        AddOutPutFilterByType DEFLATE text/plain text/html text/xml text/css text/javascript application/xml application/xml application/rss+xml application/javascript application/x-javascript
        <IfModule mod_setenvif.c>
            # Netscape 4.x has some problems...
            BrowserMatch ^Mozilla/4 gzip-only-text/html
            
            # Netscape 4.06-4.08 have some more problems
            BrowserMatch ^Mozilla/4\.0[678] no-gzip
            
            # MSIE masquerades as Netscape, but it is fine
            # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
            
            # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
            # the above regex won't work. You can use the following
            # workaround to get the desired effect:
            BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
            
            # Don't compress images
            SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
        </IfModule>
        
        <IfModule mod_headers.c>
            # Make sure proxies don't deliver the wrong content
            Header append Vary User-Agent env=!dont-vary
        </IfModule>
    </IfModule>

  6. #6

    Default

    Quote Originally Posted by Bob Barr View Post
    When the heck did they add that button? (I really wish Bluehost would announce changes such as this.) Do you know if it adds code to your .htaccess file?
    Yes, they add code to your .htacess file in your root. I tried posting the code here, but it wouldn't let me. The problem is it only works when the server decides it works. Which does us no good.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •