{"id":1498512,"date":"2019-09-24T11:30:40","date_gmt":"2019-09-24T09:30:40","guid":{"rendered":"https:\/\/wp-rocket.me\/?p=1498512"},"modified":"2021-04-14T17:24:09","modified_gmt":"2021-04-14T15:24:09","slug":"brotli-vs-gzip-compression","status":"publish","type":"post","link":"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/","title":{"rendered":"Brotli vs. GZIP Compression: Which One is Better for WordPress?"},"content":{"rendered":"<p>Compressing your WordPress site&#8217;s files is a great way to shrink your page sizes, speed up your site and <a href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/\">improve your Core Web Vitals performance<\/a>.<\/p><p>For a long time (since the 90s), GZIP compression has been the gold standard for web compression. But it&#8217;s not the only compression game in town &#8211; Brotli is a newer, Google-backed compression method that was released in 2013 and is quickly picking up steam.<\/p><p>So when it comes to Brotli vs GZIP compression for your WordPress website, which one should you be using? More importantly, does that question actually matter, or is either compression method fine? Let&#8217;s find out!<\/p><p>In addition to comparing both methods, we&#8217;ll also show you how to use both Brotli and GZIP compression on your WordPress site.<\/p><h2 class=\"wp-block-heading\">Brotli vs GZIP Compression: What&#8217;s the Difference?<\/h2><p>Both Brotli and GZIP are methods to compress your website&#8217;s files. So at a high-level, both Brotli and GZIP are quite similar <em>with respect to their core purpose<\/em>.<\/p><p>The difference, of course, is in how they go about compressing your site and how effective they are.<\/p><p>Before we compare performance benchmarks, though, let&#8217;s cover the basics of GZIP and Brotli.<\/p><h3 class=\"wp-block-heading\">GZIP<\/h3><p>GZIP&#8217;s initial release was all the way back in 1992.<\/p><p>Since the &#8217;90s, GZIP has been the dominant format for web compression. It still retains that position today &#8211; <a href=\"https:\/\/w3techs.com\/technologies\/details\/ce-compression\/all\/all\">according to W3Techs<\/a>, 78.6% of websites use GZIP compression at some level.<\/p><p>GZIP is based on the DEFLATE algorithm and, while people usually just refer to it as a single compression tool, there are actually different &#8220;levels&#8221; of GZIP compression.<\/p><p>In total, GZIP has nine quality levels that balance compression level vs speed:<\/p><ul class=\"wp-block-list\"><li>Level 1 &#8211; small file savings, but very fast compression speed.<\/li><li>\u2026<\/li><li>Level 9 &#8211; maximum file size savings, but comparatively slow compression speed.<\/li><\/ul><p>All major browsers support GZIP and most web hosts also support GZIP out of the box.<\/p><h3 class=\"wp-block-heading\">Brotli<\/h3><p>Compared to GZIP, Brotli is much younger. It was initially released in 2013 by software engineers from Google, though it didn&#8217;t focus on HTTP compression until 2015.<\/p><p>While it took some time for adoption, Brotli is now supported by all major web browsers in 2019.<\/p><p>Like GZIP, Brotli also has different compression levels. In total, it has eleven different levels that follow a similar pattern as GZIP:<\/p><ul class=\"wp-block-list\"><li>Level 1 &#8211; small file savings, but very fast compression speed.<\/li><li>\u2026<\/li><li>Level 11 &#8211; maximum file size savings, but comparatively slow compression speed.<\/li><\/ul><h3 class=\"wp-block-heading\">Brotli vs GZIP Benchmarks: Which Performs Better?<\/h3><p>Ok &#8211; now for the important question:<\/p><h4 class=\"wp-block-heading\"><strong>Brotli vs GZIP compression &#8211; which performs better?<\/strong><\/h4><p>Here, we&#8217;ll turn to some public benchmark tests.<\/p><p>Before we dig into the data, it&#8217;s important to understand that there are multiple parts to compression and web performance:<\/p><ul class=\"wp-block-list\"><li><strong>Compression ratio<\/strong> &#8211; this is how big the file size savings are. E.g. a 2 MB file compressed to 1 MB.<\/li><li><strong>Compression speed<\/strong> &#8211; this is how quickly it takes to compress and decompress the file. This is especially important for dynamic content that you need to compress &#8220;on-the-fly&#8221;.<\/li><\/ul><p>Let&#8217;s look at the data&#8230;<\/p><p>First, there&#8217;s <a href=\"https:\/\/blogs.akamai.com\/2016\/02\/understanding-brotlis-potential.html\">this benchmark from content-delivery giant Akamai<\/a>.<\/p><p>Akamai took a list of the top-1,000 URLs, downloaded the HTML, CSS, and JavaScript, and compressed those files with both GZIP and Brotli. Akamai found that the:<\/p><ul class=\"wp-block-list\"><li>Median GZIP savings was 78%<\/li><li>Median Brotli savings was 82%<\/li><\/ul><p><em>Higher is better.<\/em><\/p><p>More specifically, Akamai found that Brotli was:<\/p><ul class=\"wp-block-list\"><li>21% better at compressing HTML<\/li><li>14% better at compressing JavaScript<\/li><li>17% better at compressing CSS<\/li><\/ul><p><em>Those are the median numbers from Akamai&#8217;s tests<\/em>.<\/p><p>But remember &#8211; compression is more than just smaller file sizes &#8211; it also matters how long it takes to perform the compression (AKA the compression speed).<\/p><p>In terms of compression speed, Akamai found that it matters which &#8220;level&#8221; you use. <strong>GZIP was faster at some levels, while Brotli performed faster at some levels<\/strong>.<\/p><p>In the end, <a href=\"https:\/\/blogs.akamai.com\/2016\/02\/understanding-brotlis-potential.html\">Akamai concludes<\/a> that &#8220;if you tweak the Brotli settings a little bit, the compression speeds can actually surpass the speeds of GZIP while still providing some significant savings&#8221;.<\/p><p><a href=\"https:\/\/www.opencpu.org\/posts\/brotli-benchmarks\/\">OpenCPU also ran their own benchmarks<\/a> and found that:<\/p><ul class=\"wp-block-list\"><li>Brotli was superior in terms of the compression ratio<\/li><li>GZIP was much faster at on-the-fly compression. <em>It&#8217;s unclear how much they &#8220;tweaked&#8221; these settings<\/em><\/li><\/ul><h3 class=\"wp-block-heading\">Does the Difference Matter?<\/h3><p>The data is clear that Brotli offers a better compression ratio than GZIP. That is, it compresses your website &#8220;more&#8221; than GZIP.<\/p><p>However, remember that it&#8217;s not just about the compression ratio, it&#8217;s also about how long it takes to compress and decompress data. There, the difference isn&#8217;t quite as pronounced. <\/p><p>In general, the data seems to suggest that:<\/p><ul class=\"wp-block-list\"><li>Brotli is better at compressing static data because of its superior compression ratio<\/li><li>GZIP is better at compressing dynamic data because of its <em>often<\/em> superior compression speed<\/li><\/ul><p><em>Akamai also notes that, if you play around with the Brotli settings, you can get compression speeds that rival GZIP while also benefiting from a better compression ratio.<\/em><\/p><p>In general, though, if you&#8217;re just an average WordPress user, I don&#8217;t think the GZIP vs Brotli debate is something you really need to worry about.<\/p><p>It&#8217;s important to use <em>some type of compression<\/em>. But for your average run-of-the-mill WordPress website, you don&#8217;t need to stress about whether you&#8217;re using GZIP or Brotli.<\/p><p>Additionally, GZIP compression is much easier to use on WordPress because of its almost universal adoption, so it&#8217;s a good starting point for most WordPress users that will still get your site the benefits of compression.<\/p><div id=\"om-ulrdquoprwqcywqbbgci-holder\"><\/div>\n\t<script>(function (d, u, ac) {\n\t\t\tvar s = d.createElement('script')\n\t\t\ts.type = 'text\/javascript'\n\t\t\ts.src = 'https:\/\/a.omappapi.com\/app\/js\/api.min.js'\n\t\t\ts.async = true\n\t\t\ts.dataset.user = u\n\t\t\ts.dataset.campaign = ac\n\t\t\td.getElementsByTagName('head')[0].appendChild(s)\n\t\t})(document, 20440, 'ulrdquoprwqcywqbbgci')<\/script><h2 class=\"wp-block-heading\">How to Use GZIP Compression on WordPress<\/h2><p>First off, if you&#8217;re using <a href=\"https:\/\/wp-rocket.me\/\">WP Rocket<\/a>, your site is already benefiting from GZIP compression. WP Rocket automatically activates GZIP compression as soon as you activate the plugin &#8211; you don&#8217;t need to perform any manual actions.<\/p><p>If you&#8217;re not using WP Rocket yet, WP Rocket offers an easy way to get started with GZIP compression on WordPress, but it&#8217;s certainly not the <em>only<\/em> way.<\/p><p>You can also activate GZIP compression\u2026<\/p><ul class=\"wp-block-list\"><li>Manually by adding a code snippet to your site&#8217;s .htaccess file<\/li><li>Via a dedicated WordPress GZIP compression plugin<\/li><\/ul><h3 class=\"wp-block-heading\">Enable GZIP Compression on WordPress via .htaccess<\/h3><p>If your site uses the Apache webserver (<em>which most WordPress hosts do<\/em>), you can enable GZIP compression by adding the following code snippet to your site&#8217;s .htaccess file:<\/p><pre class=\"wp-block-code\"><code>&lt;IfModule mod_deflate.c&gt;\n# Enables GZIP compression\nAddOutputFilterByType DEFLATE application\/javascript\nAddOutputFilterByType DEFLATE application\/rss+xml\nAddOutputFilterByType DEFLATE application\/vnd.ms-fontobject\nAddOutputFilterByType DEFLATE application\/x-font\nAddOutputFilterByType DEFLATE application\/x-font-opentype\nAddOutputFilterByType DEFLATE application\/x-font-otf\nAddOutputFilterByType DEFLATE application\/x-font-truetype\nAddOutputFilterByType DEFLATE application\/x-font-ttf\nAddOutputFilterByType DEFLATE application\/x-javascript\nAddOutputFilterByType DEFLATE application\/xhtml+xml\nAddOutputFilterByType DEFLATE application\/xml\nAddOutputFilterByType DEFLATE font\/opentype\nAddOutputFilterByType DEFLATE font\/otf\nAddOutputFilterByType DEFLATE font\/ttf\nAddOutputFilterByType DEFLATE image\/svg+xml\nAddOutputFilterByType DEFLATE image\/x-icon\nAddOutputFilterByType DEFLATE text\/css\nAddOutputFilterByType DEFLATE text\/html\nAddOutputFilterByType DEFLATE text\/javascript\nAddOutputFilterByType DEFLATE text\/plain\nAddOutputFilterByType DEFLATE text\/xml\n# Remove browser bugs in old browsers\nBrowserMatch ^Mozilla\/4 gzip-only-text\/html\nBrowserMatch ^Mozilla\/4\\.0[678] no-gzip\nBrowserMatch \\bMSIE !no-gzip !gzip-only-text\/html\nHeader append Vary User-Agent\n&lt;\/IfModule&gt;\n<\/code><\/pre><h3 class=\"wp-block-heading\">Enable GZIP Compression on WordPress via Plugin<\/h3><p>Many WordPress caching and performance plugins include GZIP compression as part of their features. <em>Again, that includes WP Rocket<\/em>.<\/p><p>However, if you just want a plugin that&#8217;s laser-focused on GZIP compression, you can use the free <a href=\"https:\/\/wordpress.org\/plugins\/enable-gzip-compression\/\">Enable GZIP Compression plugin at WordPress.org<\/a>. Once you install and activate the plugin, go to <strong>Settings \u2192 GZIP compression<\/strong> and click the <strong>Enable GZIP compression<\/strong> button:<\/p><figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"489\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/enable-gzip-compression.png\" alt=\"The Enable GZIP Compression Plugin\" class=\"wp-image-1498806\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/enable-gzip-compression.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/enable-gzip-compression-300x183.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/enable-gzip-compression-768x469.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption>Enable GZIP Compression Plugin<\/figcaption><\/figure><p>That&#8217;s it!<\/p><h3 class=\"wp-block-heading\">How to Test GZIP Compression<\/h3><p>Once you&#8217;ve enabled GZIP compression, you use <a href=\"https:\/\/varvy.com\/tools\/gzip\/\">Varvy&#8217;s GZIP compression tester<\/a> to make sure it&#8217;s working:<\/p><figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"398\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wordpress-gzip-compression-test.png\" alt=\"Varvy's GZIP Compression Tool\" class=\"wp-image-1498819\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wordpress-gzip-compression-test.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wordpress-gzip-compression-test-310x154.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wordpress-gzip-compression-test-768x382.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption>Varvy&#8217;s GZIP Compression Tool<\/figcaption><\/figure><h2 class=\"wp-block-heading\">How to Use Brotli Compression on WordPress<\/h2><p>Using Brotli compression on your WordPress site is a little more complicated.<\/p><p>First off, if you want to enable Brotli compression at a server level, you&#8217;ll need to pick a host that supports Brotli (<em>or gives you server access to install the Brotli library yourself<\/em>).<\/p><p>While almost every single host supports GZIP out of the box, finding a WordPress host that supports Brotli on shared or managed plans is much less common.<\/p><p>Thankfully, there&#8217;s another option that will work for all WordPress sites:<\/p><p><a href=\"https:\/\/www.cloudflare.com\/\">Cloudflare<\/a>.<\/p><p>If you&#8217;re <a href=\"https:\/\/wp-rocket.me\/blog\/cloudflare-use-not\/\">willing to use the Cloudflare CDN service<\/a>, you can enable Brotli compression with the click of a button. Just look for the <strong>Brotli<\/strong> setting in the <strong>Speed<\/strong> tab of your site&#8217;s Cloudflare dashboard:<br><\/p><figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"425\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-brotli.png\" alt=\"Brotli Settings in Cloudflare's dashboard\" class=\"wp-image-1498824\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-brotli.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-brotli-310x165.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-brotli-768x408.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption>Cloudflare enables Brotli by default.<\/figcaption><\/figure><p>WP Rocket also has <a href=\"https:\/\/docs.wp-rocket.me\/article\/18-using-wp-rocket-with-cloudflare\">a dedicated Cloudflare integration<\/a> that makes it super easy to get up and running.<\/p><h3 class=\"wp-block-heading\">How to Test Brotli Compression<\/h3><p>Once you&#8217;ve connected your WordPress site to Cloudflare and enabled Brotli compression, you can test if it&#8217;s working by <a href=\"https:\/\/tools.keycdn.com\/brotli-test\">using KeyCDN&#8217;s Brotli test tool<\/a>.<\/p><h2 class=\"wp-block-heading\">Brotli vs GZIP: Pick the One That&#8217;s Right For You<\/h2><p>Both GZIP and Brotli help you compress your WordPress website&#8217;s files. GZIP is the older and more popular of the two, while Brotli is newer but picking up steam.<\/p><p>While Brotli does seem to outperform GZIP in some benchmarks, especially when you play around with its configuration, GZIP is probably still a better starting point for most WordPress users because:<\/p><ul class=\"wp-block-list\"><li>It&#8217;s much easier to use with WordPress because almost every host supports GZIP out of the box.<\/li><li>It&#8217;s still quite competitive in benchmarks and will have a positive effect on your site&#8217;s page load times.<\/li><\/ul><p>If you have the ability to manually install Brotli on your server, or if you&#8217;re willing to use Cloudflare, Brotli is certainly still a good option. It&#8217;s just not as popular, and therefore not as easy to use with WordPress.<\/p><p>Either way, remember that text compression helps improve the <a href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/improve-largest-contentful-paint\/\">Largest Contentful Paint<\/a> and the <a href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/improve-first-input-delay\/\">First Input Delay<\/a> metrics. And that&#8217;s also why you should take care of it.<\/p>","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re trying to decide between Brotli vs GZIP compression, in this article we compare and benchmark these two compression methods for WordPress users.<\/p>\n","protected":false},"author":84133,"featured_media":1498799,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"kia_subtitle":"","footnotes":""},"categories":[63],"tags":[],"class_list":["post-1498512","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-cache"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Brotli vs GZIP Compression: Which One is Better for WordPress?<\/title>\n<meta name=\"description\" content=\"Trying to decide between Brotli vs GZIP compression? We&#039;ll compare and benchmark these two compression methods for WordPress users.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Brotli vs GZIP Compression: Which One is Better for WordPress?\" \/>\n<meta property=\"og:description\" content=\"Trying to decide between Brotli vs GZIP compression? We&#039;ll compare and benchmark these two compression methods for WordPress users.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Rocket\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-24T09:30:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-14T15:24:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/brotli-vs-gzip.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"460\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Colin Newcomer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:site\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Colin Newcomer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/\"},\"author\":{\"name\":\"Colin Newcomer\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/d591586bde54c0f702d335ee00c9f1ed\"},\"headline\":\"Brotli vs. GZIP Compression: Which One is Better for WordPress?\",\"datePublished\":\"2019-09-24T09:30:40+00:00\",\"dateModified\":\"2021-04-14T15:24:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/\"},\"wordCount\":1495,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/brotli-vs-gzip.png\",\"articleSection\":[\"Page speed and caching\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/\",\"url\":\"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/\",\"name\":\"Brotli vs GZIP Compression: Which One is Better for WordPress?\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/brotli-vs-gzip.png\",\"datePublished\":\"2019-09-24T09:30:40+00:00\",\"dateModified\":\"2021-04-14T15:24:09+00:00\",\"description\":\"Trying to decide between Brotli vs GZIP compression? We'll compare and benchmark these two compression methods for WordPress users.\",\"breadcrumb\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/#primaryimage\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/brotli-vs-gzip.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/brotli-vs-gzip.png\",\"width\":1100,\"height\":460,\"caption\":\"Brotli VS GZIP Compression\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wp-rocket.me\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Page speed and caching\",\"item\":\"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Brotli vs. GZIP Compression: Which One is Better for WordPress?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wp-rocket.me\/#website\",\"url\":\"https:\/\/wp-rocket.me\/\",\"name\":\"WP Rocket\",\"description\":\"Plugin d&#039;optimisation de sites WordPress\",\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wp-rocket.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wp-rocket.me\/#organization\",\"name\":\"WP Rocket\",\"url\":\"https:\/\/wp-rocket.me\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"width\":150,\"height\":41,\"caption\":\"WP Rocket\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\",\"https:\/\/x.com\/wp_rocket\",\"https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/d591586bde54c0f702d335ee00c9f1ed\",\"name\":\"Colin Newcomer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dbfc60b99dd357e490f84ef7099dc25c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dbfc60b99dd357e490f84ef7099dc25c?s=96&d=mm&r=g\",\"caption\":\"Colin Newcomer\"},\"description\":\"Colin Newcomer is a freelance writer who spends his days inside the WordPress dashboard. He lives a life of danger, riding a scooter through the chaos of Hanoi.\",\"sameAs\":[\"https:\/\/wp-rocket.me\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Brotli vs GZIP Compression: Which One is Better for WordPress?","description":"Trying to decide between Brotli vs GZIP compression? We'll compare and benchmark these two compression methods for WordPress users.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/","og_locale":"en_US","og_type":"article","og_title":"Brotli vs GZIP Compression: Which One is Better for WordPress?","og_description":"Trying to decide between Brotli vs GZIP compression? We'll compare and benchmark these two compression methods for WordPress users.","og_url":"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/","og_site_name":"WP Rocket","article_publisher":"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","article_published_time":"2019-09-24T09:30:40+00:00","article_modified_time":"2021-04-14T15:24:09+00:00","og_image":[{"width":1100,"height":460,"url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/brotli-vs-gzip.png","type":"image\/png"}],"author":"Colin Newcomer","twitter_card":"summary_large_image","twitter_creator":"@wp_rocket","twitter_site":"@wp_rocket","twitter_misc":{"Written by":"Colin Newcomer","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/#article","isPartOf":{"@id":"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/"},"author":{"name":"Colin Newcomer","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/d591586bde54c0f702d335ee00c9f1ed"},"headline":"Brotli vs. GZIP Compression: Which One is Better for WordPress?","datePublished":"2019-09-24T09:30:40+00:00","dateModified":"2021-04-14T15:24:09+00:00","mainEntityOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/"},"wordCount":1495,"commentCount":1,"publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/brotli-vs-gzip.png","articleSection":["Page speed and caching"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/","url":"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/","name":"Brotli vs GZIP Compression: Which One is Better for WordPress?","isPartOf":{"@id":"https:\/\/wp-rocket.me\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/#primaryimage"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/brotli-vs-gzip.png","datePublished":"2019-09-24T09:30:40+00:00","dateModified":"2021-04-14T15:24:09+00:00","description":"Trying to decide between Brotli vs GZIP compression? We'll compare and benchmark these two compression methods for WordPress users.","breadcrumb":{"@id":"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/#primaryimage","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/brotli-vs-gzip.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/brotli-vs-gzip.png","width":1100,"height":460,"caption":"Brotli VS GZIP Compression"},{"@type":"BreadcrumbList","@id":"https:\/\/wp-rocket.me\/blog\/brotli-vs-gzip-compression\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wp-rocket.me"},{"@type":"ListItem","position":2,"name":"Page speed and caching","item":"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/"},{"@type":"ListItem","position":3,"name":"Brotli vs. GZIP Compression: Which One is Better for WordPress?"}]},{"@type":"WebSite","@id":"https:\/\/wp-rocket.me\/#website","url":"https:\/\/wp-rocket.me\/","name":"WP Rocket","description":"Plugin d&#039;optimisation de sites WordPress","publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wp-rocket.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wp-rocket.me\/#organization","name":"WP Rocket","url":"https:\/\/wp-rocket.me\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","width":150,"height":41,"caption":"WP Rocket"},"image":{"@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","https:\/\/x.com\/wp_rocket","https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q"]},{"@type":"Person","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/d591586bde54c0f702d335ee00c9f1ed","name":"Colin Newcomer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/dbfc60b99dd357e490f84ef7099dc25c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dbfc60b99dd357e490f84ef7099dc25c?s=96&d=mm&r=g","caption":"Colin Newcomer"},"description":"Colin Newcomer is a freelance writer who spends his days inside the WordPress dashboard. He lives a life of danger, riding a scooter through the chaos of Hanoi.","sameAs":["https:\/\/wp-rocket.me\/"]}]}},"_links":{"self":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/1498512"}],"collection":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/users\/84133"}],"replies":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/comments?post=1498512"}],"version-history":[{"count":0,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/1498512\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media\/1498799"}],"wp:attachment":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media?parent=1498512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/categories?post=1498512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/tags?post=1498512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}