Title: Gzip compression configuration
Last modified: January 4, 2022

---

# Gzip compression configuration

 *  Resolved [Ocean2070.com](https://wordpress.org/support/users/havbloggen/)
 * (@havbloggen)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/gzip-compression-configuration/)
 * Hi, I am trying to configure Gzip compression, but don’t know how to use the 
   code proposed by Hummingbird. Server is NGINX.
 * # 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)”;`
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgzip-compression-configuration%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/gzip-compression-configuration/#post-15218823)
 * Hello [@havbloggen](https://wordpress.org/support/users/havbloggen/) !
 * Hope you’re having a good day!
 * In case of nginx you’ll need to contact your hosting provider and ask them to
   add the code for you and reload nginx. On most servers running on nginx the configuration
   isn’t accessible to the users and only the hosting team can add code.
 * Warm regards,
    Pawel
 *  Thread Starter [Ocean2070.com](https://wordpress.org/support/users/havbloggen/)
 * (@havbloggen)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/gzip-compression-configuration/#post-15218957)
 * Thx for swift reply Pawel, Kinsta fixed it for me :-). Best, Morten.
 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/gzip-compression-configuration/#post-15219030)
 * Hello [@havbloggen](https://wordpress.org/support/users/havbloggen/) !
 * Perfect! 🙂
 * Kind regards,
    Pawel

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Gzip compression configuration’ is closed to new replies.

 * ![](https://ps.w.org/hummingbird-performance/assets/icon-256x256.gif?rev=2633221)
 * [Hummingbird Performance - Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN](https://wordpress.org/plugins/hummingbird-performance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hummingbird-performance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hummingbird-performance/)
 * [Active Topics](https://wordpress.org/support/plugin/hummingbird-performance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hummingbird-performance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hummingbird-performance/reviews/)

## Tags

 * [compression](https://wordpress.org/support/topic-tag/compression/)
 * [gzip](https://wordpress.org/support/topic-tag/gzip/)
 * [hummingbird](https://wordpress.org/support/topic-tag/hummingbird/)

 * 3 replies
 * 2 participants
 * Last reply from: [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/gzip-compression-configuration/#post-15219030)
 * Status: resolved