{"id":2677,"date":"2019-10-23T09:23:09","date_gmt":"2019-10-23T01:23:09","guid":{"rendered":"https:\/\/www.mondoze.com\/guide\/?post_type=kb&#038;p=2677"},"modified":"2022-10-05T08:02:27","modified_gmt":"2022-10-05T00:02:27","slug":"why-isnt-auto-minify-working","status":"publish","type":"kb","link":"https:\/\/www.mondoze.com\/guide\/kb\/why-isnt-auto-minify-working","title":{"rendered":"Why isn&#8217;t Auto Minify working?"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2677\" class=\"elementor elementor-2677\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-775b6a02 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"775b6a02\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-75f38a3\" data-id=\"75f38a3\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-eff1570 elementor-widget elementor-widget-heading\" data-id=\"eff1570\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Why isn't Auto Minify working?<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-72d6279d elementor-widget elementor-widget-text-editor\" data-id=\"72d6279d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>Once enabled, Cloudflare&#8217;s Auto minify will minify your HTML and your cached CSS &amp; JS files. If you view the source of your files in your web browser or via a command line tool such as cURL and you do not see the code being minified &#8211; here are some things you should check:<\/p><ul><li>Only files that are serve via your orange-cloud DNS records will be minify &#8211; so code on 3rd party domains that are not using Cloudflare will not be minify<\/li><li>For CSS &amp; JS only cache HITs will be minified &#8211; use\u00a0this guide\u00a0to check an individual file&#8217;s cache status.<\/li><li>The feature will deliberately skip minification for files that contain\u00a0<code>.min<\/code>\u00a0in their name<\/li><li>If your code has fatal syntax errors, auto minify may not be able to successfully minify the code &#8211; use the syntax checkers below on your files to confirm this<\/li><li>We will not minify inline js\/css inside your html<\/li><\/ul><p dir=\"auto\">If you want to manually confirm whether your files are getting minify, you can use a tool such as cURL to compare the response with and without Cloudflare &#8211; use this guide to learn how to do that or you can view the source code in your browser directly.<\/p><p dir=\"auto\">To check the syntax of your HTML \/ CSS or JS files we recommend using online validators \/ tools such as the following to look for potential issues:<\/p><ul type=\"disc\"><li>HTML:\u00a0https:\/\/validator.w3.org\/<\/li><li>CSS:\u00a0http:\/\/jigsaw.w3.org\/css-validator\/<\/li><li>JavaScript:\u00a0http:\/\/www.javascriptlint.com\/online_lint.php<\/li><\/ul><p dir=\"auto\">If you see that minification still isn\u2019t taking effect after checking these steps, please\u00a0contact Cloudflare Support. You should include the URLs of the resources that you are seeing issues with.<\/p><p dir=\"auto\"><strong>Note:<\/strong>\u00a0CSS &amp; JS minification will operate on cached CSS and JS files only. Once Cloudflare returns a cache HIT for the file it will be return to browsers in minify form. This allows us to deliver a more complete minification result. If you need to enable or disable minification for CSS &amp; JS you will now need to purge your Cloudflare cache to see the effect of any minification setting change.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Why isn&#8217;t Auto Minify working? Once enabled, Cloudflare&#8217;s Auto minify will minify your HTML and your cached CSS &amp; JS files. If you view the source of your files in your web browser or via a command line tool such as cURL and you do not see the code being minified &#8211; here are some &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.mondoze.com\/guide\/kb\/why-isnt-auto-minify-working\"> <span class=\"screen-reader-text\">Why isn&#8217;t Auto Minify working?<\/span> Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[53],"kbtag":[110],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2677"}],"collection":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/comments?post=2677"}],"version-history":[{"count":9,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2677\/revisions"}],"predecessor-version":[{"id":18728,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2677\/revisions\/18728"}],"wp:attachment":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/media?parent=2677"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=2677"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtag?post=2677"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=2677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}