{"id":1653,"date":"2020-06-07T22:42:36","date_gmt":"2020-06-07T14:42:36","guid":{"rendered":"https:\/\/www.wesbytes.com\/guide\/?post_type=kb&#038;p=1653"},"modified":"2026-01-12T13:43:08","modified_gmt":"2026-01-12T05:43:08","slug":"what-will-cloudflare-compress","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/what-will-cloudflare-compress","title":{"rendered":"What will Cloudflare compress?"},"content":{"rendered":"<h3><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/pub-d9bf66e086fb4b639107aa52105b49dd.r2.dev\/Mermaid%20thumbnail_Content%20Compression.png\" alt=\"Cloudflare compress\" width=\"584\" height=\"328\" \/><\/h3>\n<h3><strong>What will Cloudflare compress?<\/strong><\/h3>\n<p>In addition to<a href=\"https:\/\/www.cloudflare.com\/\" rel=\"nofollow noopener\" target=\"_blank\"> Cloudflare<\/a>\u2019s\u00a0CDN\u00a0caching static content\u00a0and\u00a0auto-minification\u00a0of CSS, JS &amp; HTML to speed up your site, Cloudflare also provides gzip and brotli compression to help site owners.<\/p>\n<p>Cloudflare will return gzip or brotli encod responses to compatible clients \/ browsers for the following content-types:<\/p>\n<pre>text\/html\r\ntext\/richtext\r\ntext\/plain\r\ntext\/css\r\ntext\/x-script\r\ntext\/x-component\r\ntext\/x-java-source\r\ntext\/x-markdown\r\napplication\/javascript\r\napplication\/x-javascript\r\ntext\/javascript\r\ntext\/js\r\nimage\/x-icon\r\napplication\/x-perl\r\napplication\/x-httpd-cgi\r\ntext\/xml\r\napplication\/xml\r\napplication\/xml+rss\r\napplication\/json\r\nmultipart\/bag\r\nmultipart\/mixed\r\napplication\/xhtml+xml\r\nfont\/ttf\r\nfont\/otf\r\nfont\/x-woff\r\nimage\/svg+xml\r\napplication\/vnd.ms-fontobject\r\napplication\/ttf\r\napplication\/x-ttf\r\napplication\/otf\r\napplication\/x-otf\r\napplication\/truetype\r\napplication\/opentype\r\napplication\/x-opentype\r\napplication\/font-woff\r\napplication\/eot\r\napplication\/font\r\napplication\/font-sfnt\r\napplication\/wasm<\/pre>\n<p>If you do not want a particular response from your origin to be encoded, you can disable this by setting\u00a0<code>cache-control: no-transform<\/code>\u00a0at your origin and turning Origin Cache Control -&gt; On using a\u00a0Page Rule.<\/p>\n<p><strong>How do I enable Brotli compression?<\/strong><\/p>\n<p>You can locate the setting for Brotli under the Speed section of your website\u2019s settings.<\/p>\n<p>&nbsp;<\/p>\n<p><span data-sheets-root=\"1\">Please refer to the following article to know more.<br \/>\nKnowledge Base: <a href=\"https:\/\/www.servergigabit.com\/guide\/kb\/securing-and-enhancing-your-website-with-cloudflare\">Cloudflare: Powerful Ways to Secure and Enhance Your Website<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What will Cloudflare compress? In addition to Cloudflare\u2019s\u00a0CDN\u00a0caching static content\u00a0and\u00a0auto-minification\u00a0of CSS, JS &amp; HTML to speed up your site, Cloudflare also provides gzip and brotli compression to help site owners. Cloudflare will return gzip or brotli encod responses to compatible clients \/ browsers for the following content-types: text\/html text\/richtext text\/plain text\/css text\/x-script text\/x-component text\/x-java-source text\/x-markdown application\/javascript application\/x-javascript text\/javascript text\/js image\/x-icon&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[43],"kbtag":[1401],"class_list":["post-1653","kb","type-kb","status-publish","hentry","kbtopic-cloudflare","kbtag-cloudflare-compress"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/comments?post=1653"}],"version-history":[{"count":4,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1653\/revisions"}],"predecessor-version":[{"id":6003,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1653\/revisions\/6003"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=1653"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=1653"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=1653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}