• Resolved alexcjackson05

    (@alexcjackson05)


    My website is really slow, so I’m trying to identify ways to make it quicker. I want to enable GZip compression using this plug in,

    I host with Fasthosts who say they cannot enable this for me, but I don’t know how to do it and have tried to follow the instructions in the plug in.

    Unofrtuantley I’m nto very good with code, and I don’t want to change anything that could break the site.

    Thanks!
    Alex

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello @alexcjackson05,

    hope you’re doing good and thanks for reaching us! ??

    Enabling GZIP isn’t difficult at all, as long as there’s no kind of restriction from your hosting provider.
    Simply select the server type your server uses (you may have to advise your hosting provider about it), then select either the Automatic or Manual way to activate it.
    https://monosnap.com/file/hXRH1gITUirxspSC4CO5UCQkRWlyAk

    Please keep in mind that GZIP is waiting for some server modules to be installed already, so if you get any similar error message, please consult your hosting provider again.

    Warm regards,
    Dimitris

    Thread Starter alexcjackson05

    (@alexcjackson05)

    Hi Dimitris,

    Thanks for taking a look – I think because my site is on a NGINX server I have to copy something across into my domain control panel but I don’t know where to go to copy it.

    Thanks!
    Alex

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @alexcjackson05

    Hope you’re doing well!

    Please copy the code for NGNIX server into your nginx.conf which is usually located at /etc/nginx/nginx.conf or /usr/local/nginx/conf/nginx.conf. If you are not sure of the exact file location, please contact your hosting provider.

    The code needs to be added above to the http or inside server section in the file. After this, please reload NGINX.

    Here is the code that you will need to add, it is also can be found from the plugin’s options, Defender > GZIP Compression

    
    # Enable Gzip compression
    gzip          on;
    
    # Compression level (1-9)
    gzip_comp_level     5;
    
    # Don't compress anything under 256 bytes
    gzip_min_length     256;
    
    # Compress output of these MIME-types
    gzip_types
        application/atom+xml
        application/javascript
        application/json
        application/rss+xml
        application/vnd.ms-fontobject
        application/x-font-ttf
        application/x-font-opentype
        application/x-font-truetype
        application/x-javascript
        application/x-web-app-manifest+json
        application/xhtml+xml
        application/xml
        font/eot
        font/opentype
        font/otf
        image/svg+xml
        image/x-icon
        image/vnd.microsoft.icon
        text/css
        text/plain
        text/javascript
        text/x-component;
    
    # Disable gzip for bad browsers
    gzip_disable  "MSIE [1-6]\.(?!.*SV1)";

    Let us know if you have any questions!

    Cheers,
    Nastia

    Thread Starter alexcjackson05

    (@alexcjackson05)

    Hi Nastia,

    Thanks – yes, this looks like what I need to do. The problem is, I’ve contacted Fasthosts and they say that they cannot direct me to where I can add the code. Very fustrating! Perhaps I will try again to get a different operator this time.

    If you have any other suggestions, they are greatfully recieved!

    Thanks,

    Alex

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello @alexcjackson05

    Unfortunately there isn’t any standard location for the configuration files of Nginx, as this may vary due to the actual way that server is built, so some feedback from your hosting provider is needed, apart from the necessary access privileges that you should have (if you don’t have such access, then this should be inserted by your hosting provider)

    Warm regards,
    Dimitris

    Thread Starter alexcjackson05

    (@alexcjackson05)

    Ahh I see. I’ve just got back in contact with Fasthosts support and they say that they can’t allow me access to the NGINX for security reasons, but they will enable GZIP compression through the .htaccess file for me instead. Will that work with the plug in okay?

    Hi @alexcjackson05,

    As long as the compression is enabled, Hummingbird will be able to detect it. You might not be able to change the values automatically. Depends on how your host does the configuration.

    Best regards,
    Anton

    Thread Starter alexcjackson05

    (@alexcjackson05)

    Thanks for all your help everyone!

    Mission success.

    Alex

    @alexcjackson05, welcome ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘I can’t get Gzip Compression to work’ is closed to new replies.