{"id":7438,"date":"2023-03-15T17:58:59","date_gmt":"2023-03-15T10:58:59","guid":{"rendered":"https:\/\/www.indowhiz.com\/articles\/?p=7438"},"modified":"2023-04-01T12:40:56","modified_gmt":"2023-04-01T05:40:56","slug":"cloudflares-cache-everything-adsense-issue","status":"publish","type":"post","link":"https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/","title":{"rendered":"Cloudflare&#8217;s &#8220;Cache Everything&#8221; and AdSense Ad Unit Issue"},"content":{"rendered":"\n<p>Implementing Cloudflare&#8217;s &#8220;cache everything&#8221; rule while <a href=\"https:\/\/www.indowhiz.com\/articles\/en\/website-ready-adsense\/\" target=\"_blank\" rel=\"noreferrer noopener\">serving Google AdSense<\/a> is a great idea. It can help <a href=\"https:\/\/www.indowhiz.com\/articles\/en\/general-guidelines-to-improve-your-website-speed\/\">improve your site\u2019s performance<\/a> and generate revenue through advertising. But that can only be done with AdSense Auto Ads. On the other hand, using any manual ad unit code may throw <code>TagError: adsbygoogle.push()<\/code> and not show any advertisements.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h3 class=\"wp-block-heading\">Cloudflare&#8217;s &#8220;cache everything&#8221; rule<\/h3>\n\n\n\n<p>Cloudflare CDN does not cache dynamic HTML by default. Therefore, integrating a CMS like WordPress and the Cloudflare CDN will bypass the HTML pages.<\/p>\n\n\n\n<p>However, a WordPress blog usually has a lot of static content that doesn\u2019t change often. That&#8217;s why some people may use Cloudflare to fully cache the website using the &#8220;cache everything&#8221; rule. It is a caching strategy that tells Cloudflare to cache all resources, including HTML pages, images, scripts, and stylesheets. &nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1058\" height=\"581\" src=\"https:\/\/www.indowhiz.com\/articles\/wp-content\/uploads\/2023\/03\/Cloudflare-cache-everything-rule.jpg\" alt=\"Cloudflare's &quot;cache everything&quot; rule\" class=\"wp-image-7635\"\/><figcaption class=\"wp-element-caption\">Figure 1. Cloudflare&#8217;s &#8220;cache everything&#8221; rule<\/figcaption><\/figure>\n\n\n\n<p>When you enable this rule, Cloudflare caches all resources that pass through its network, whether static or dynamic. Then, Cloudflare can serve it quickly to visitors without repeatedly fetching it from the origin server. It can also help reduce the load on the origin server and improve the site\u2019s overall performance.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">AdSense showing empty advertisements<\/h3>\n\n\n\n<p>Commonly, it is okay to use the Cloudflare &#8220;cache everything&#8221; rule with the AdSense advertisement. That rule does not affect any external content. Therefore, it will not affect AdSense ads, as they are using JavaScript to call external content (from Google servers).&nbsp;<\/p>\n\n\n\n<p>However, that is true if you are using AdSense Auto Ads. Meanwhile, using a manual ad unit can cause some issues, including:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"markdown\" class=\"language-markdown\">TagError: adsbygoogle.push() error: No slot size for availableWidth=0<\/code><\/pre>\n\n\n\n<p>Hence, the website will show empty advertisements from Google AdSense. As a result, it may affect the revenue from advertising.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solution<\/h2>\n\n\n\n<p>You need this solution only if you use AdSense manual ad units. There are three simple steps, including reconfiguring the plugin (if any), changing the AdSense code, and testing the result.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Reconfigure the plugin (if any)<\/h3>\n\n\n\n<p>Usually, you can use a WordPress plugin (e.g., Ad Inserter) to add AdSense code dynamically in a given position. This is done on the server, and then the result is sent as finished HTML. That&#8217;s why using the &#8220;cache everything&#8221; rule may affect it and give an unexpected result. &nbsp;<\/p>\n\n\n\n<p>In this case, you need to alter this behavior. So, the plugin will give a script that adds dynamic objects, only after the HTML is sent to the client. It means that the HTML will be changed later. If we use the Ad Inserter plugin, we could change this behavior by taking a few steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the Ad Inserter, go to <code>Setting<\/code> (or <strong>\u2699<\/strong> symbol) &gt; <code>General<\/code> tab &gt; <code>Frontend<\/code> tab<\/li>\n\n\n\n<li>Use <code>client-side insert<\/code> value in the <code>Dynamic blocks<\/code> option.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1057\" height=\"813\" src=\"https:\/\/www.indowhiz.com\/articles\/wp-content\/uploads\/2023\/03\/Ad-inserter-setting-client-side-insert.jpg\" alt=\"Change Ad Inserter setting to use &quot;client-side insert&quot; for dynamic blocks.\" class=\"wp-image-7636\"\/><figcaption class=\"wp-element-caption\">Figure 2. Change Ad Inserter setting to use &#8220;client-side insert&#8221; for dynamic blocks.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">2. Modify the AdSense&#8217;s ad units code <\/h3>\n\n\n\n<p>When using cache, the HTML may not be fully rendered when AdSense calls for an ad. Therefore, it may show &#8220;<code>TagError: adsbygoogle.push() error: No slot size for availableWidth=0<\/code>.&#8221; The workaround for this problem is to <a href=\"https:\/\/stackoverflow.com\/questions\/33465168\/google-adsense-error-tagerror-adsbygoogle-push-error-no-slot-size-for-avail\" target=\"_blank\" rel=\"noreferrer noopener\">change the ad call script<\/a>.<\/p>\n\n\n\n<p>You need to change:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript line-numbers\">(adsbygoogle = window.adsbygoogle || []).push({});<\/code><\/pre>\n\n\n\n<p>to<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript line-numbers\">window.addEventListener(\"load\", function() {\n    (adsbygoogle = window.adsbygoogle || []).push({});\n});<\/code><\/pre>\n\n\n\n<p>Therefore, in the AdSense ad unit code, the results will be like this:<\/p>\n\n\n\n<pre title=\"Modified Adsense ad unit\" class=\"wp-block-code\"><code lang=\"markup\" class=\"language-markup line-numbers\">&lt;script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"&gt;&lt;\/script&gt;\n\n&lt;ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-XXXXXXXXXXXXXXXX\"\n     data-ad-slot=\"1234567890\"\n     data-ad-format=\"auto\"\n     data-full-width-responsive=\"true\"&gt;\n&lt;\/ins&gt;\n\n&lt;script&gt;\n    window.addEventListener(\"load\", function() {\n      (adsbygoogle = window.adsbygoogle || []).push({});\n    });\n&lt;\/script&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. Test the result<\/h3>\n\n\n\n<p>After you have completed all the steps above, you must test your AdSense ads. It is to make sure they display correctly on your site. You can do this by visiting your website and checking to see if the ads appear in the right places. We hope you don&#8217;t see any &#8220;<code>TagError: adsbygoogle.push()<\/code>&#8221; again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Implementing Cloudflare&#8217;s &#8220;cache everything&#8221; rule while serving Google AdSense is a great idea. It can help improve your site\u2019s performance and generate revenue through advertising. But that can only be done with AdSense Auto Ads. On the other hand, using any manual ad unit code may throw TagError: adsbygoogle.push() and not show any advertisements.<\/p>\n","protected":false},"author":1,"featured_media":7638,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"no","_lmt_disable":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","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":"","ast-disable-related-posts":"","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":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","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-opacity":"","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-opacity":"","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-opacity":"","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-opacity":"","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-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[504],"tags":[1428,465],"class_list":["post-7438","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cyberspace","tag-adsense-en","tag-cloudflare"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Cloudflare&#039;s &quot;Cache Everything&quot; and AdSense Ad Unit Issue &#8211; Indowhiz<\/title>\n<meta name=\"description\" content=\"Using Cloudflare&#039;s &quot;cache everything&quot; may make AdSense showing blank advertisements, and may reduce your revenue. Here&#039;s the solution.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cloudflare&#039;s &quot;Cache Everything&quot; and AdSense Ad Unit Issue &#8211; Indowhiz\" \/>\n<meta property=\"og:description\" content=\"Using Cloudflare&#039;s &quot;cache everything&quot; may make AdSense showing blank advertisements, and may reduce your revenue. Here&#039;s the solution.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/\" \/>\n<meta property=\"og:site_name\" content=\"Indowhiz\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/indowhiz\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/4faster\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-15T10:58:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-01T05:40:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.indowhiz.com\/articles\/wp-content\/uploads\/2023\/03\/Cover-Cloudflare-cache-everything-and-AdSense.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1279\" \/>\n\t<meta property=\"og:image:height\" content=\"719\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Philip F. E. Adipraja\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@4Faster\" \/>\n<meta name=\"twitter:site\" content=\"@4Faster\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Philip F. E. Adipraja\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/en\\\/cloudflares-cache-everything-adsense-issue\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/en\\\/cloudflares-cache-everything-adsense-issue\\\/\"},\"author\":{\"name\":\"Philip F. E. Adipraja\",\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/#\\\/schema\\\/person\\\/7b9a73764f92b8b7b6040eb1f83f8957\"},\"headline\":\"Cloudflare&#8217;s &#8220;Cache Everything&#8221; and AdSense Ad Unit Issue\",\"datePublished\":\"2023-03-15T10:58:59+00:00\",\"dateModified\":\"2023-04-01T05:40:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/en\\\/cloudflares-cache-everything-adsense-issue\\\/\"},\"wordCount\":582,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/en\\\/cloudflares-cache-everything-adsense-issue\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/Cover-Cloudflare-cache-everything-and-AdSense.jpg\",\"keywords\":[\"adsense\",\"cloudflare\"],\"articleSection\":[\"Cyberspace\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/en\\\/cloudflares-cache-everything-adsense-issue\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/en\\\/cloudflares-cache-everything-adsense-issue\\\/\",\"url\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/en\\\/cloudflares-cache-everything-adsense-issue\\\/\",\"name\":\"Cloudflare's \\\"Cache Everything\\\" and AdSense Ad Unit Issue &#8211; Indowhiz\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/en\\\/cloudflares-cache-everything-adsense-issue\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/en\\\/cloudflares-cache-everything-adsense-issue\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/Cover-Cloudflare-cache-everything-and-AdSense.jpg\",\"datePublished\":\"2023-03-15T10:58:59+00:00\",\"dateModified\":\"2023-04-01T05:40:56+00:00\",\"description\":\"Using Cloudflare's \\\"cache everything\\\" may make AdSense showing blank advertisements, and may reduce your revenue. Here's the solution.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/en\\\/cloudflares-cache-everything-adsense-issue\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/en\\\/cloudflares-cache-everything-adsense-issue\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/en\\\/cloudflares-cache-everything-adsense-issue\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/Cover-Cloudflare-cache-everything-and-AdSense.jpg\",\"contentUrl\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/Cover-Cloudflare-cache-everything-and-AdSense.jpg\",\"width\":1279,\"height\":719},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/en\\\/cloudflares-cache-everything-adsense-issue\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Articles\",\"item\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/en\\\/home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Science and Technology\",\"item\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/en\\\/category\\\/science-technology\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Cyberspace\",\"item\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/en\\\/category\\\/science-technology\\\/cyberspace\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Cloudflare&#8217;s &#8220;Cache Everything&#8221; and AdSense Ad Unit Issue\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/#website\",\"url\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/\",\"name\":\"Indowhiz\",\"description\":\"The reliable information provider\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/#organization\",\"name\":\"Indowhiz\",\"url\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/logo-indowhiz-v3.png\",\"contentUrl\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/logo-indowhiz-v3.png\",\"width\":280,\"height\":56,\"caption\":\"Indowhiz\"},\"image\":{\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/indowhiz\\\/\",\"https:\\\/\\\/x.com\\\/4Faster\",\"https:\\\/\\\/www.instagram.com\\\/indowhiz\\\/\",\"https:\\\/\\\/www.pinterest.com\\\/indowhiz\\\/\",\"https:\\\/\\\/www.youtube.com\\\/indowhiz\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/#\\\/schema\\\/person\\\/7b9a73764f92b8b7b6040eb1f83f8957\",\"name\":\"Philip F. E. Adipraja\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0428d2ce65cedc300cc77fbea17fc8fdeee4e7d92b137a1f2cd3efc80bb88069?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0428d2ce65cedc300cc77fbea17fc8fdeee4e7d92b137a1f2cd3efc80bb88069?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0428d2ce65cedc300cc77fbea17fc8fdeee4e7d92b137a1f2cd3efc80bb88069?s=96&d=mm&r=g\",\"caption\":\"Philip F. E. Adipraja\"},\"description\":\"Philip is a Computer Science and Information Engineering student at National Central University, Taiwan. His fields of interest are software engineering, modeling &amp; simulation, intelligent transport system, and smart manufacturing.\",\"sameAs\":[\"https:\\\/\\\/www.indowhiz.com\",\"https:\\\/\\\/www.facebook.com\\\/4faster\"],\"url\":\"https:\\\/\\\/www.indowhiz.com\\\/articles\\\/author\\\/philipfaster\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cloudflare's \"Cache Everything\" and AdSense Ad Unit Issue &#8211; Indowhiz","description":"Using Cloudflare's \"cache everything\" may make AdSense showing blank advertisements, and may reduce your revenue. Here's the solution.","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:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/","og_locale":"en_US","og_type":"article","og_title":"Cloudflare's \"Cache Everything\" and AdSense Ad Unit Issue &#8211; Indowhiz","og_description":"Using Cloudflare's \"cache everything\" may make AdSense showing blank advertisements, and may reduce your revenue. Here's the solution.","og_url":"https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/","og_site_name":"Indowhiz","article_publisher":"https:\/\/www.facebook.com\/indowhiz\/","article_author":"https:\/\/www.facebook.com\/4faster","article_published_time":"2023-03-15T10:58:59+00:00","article_modified_time":"2023-04-01T05:40:56+00:00","og_image":[{"width":1279,"height":719,"url":"https:\/\/www.indowhiz.com\/articles\/wp-content\/uploads\/2023\/03\/Cover-Cloudflare-cache-everything-and-AdSense.jpg","type":"image\/jpeg"}],"author":"Philip F. E. Adipraja","twitter_card":"summary_large_image","twitter_creator":"@4Faster","twitter_site":"@4Faster","twitter_misc":{"Written by":"Philip F. E. Adipraja","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/#article","isPartOf":{"@id":"https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/"},"author":{"name":"Philip F. E. Adipraja","@id":"https:\/\/www.indowhiz.com\/articles\/#\/schema\/person\/7b9a73764f92b8b7b6040eb1f83f8957"},"headline":"Cloudflare&#8217;s &#8220;Cache Everything&#8221; and AdSense Ad Unit Issue","datePublished":"2023-03-15T10:58:59+00:00","dateModified":"2023-04-01T05:40:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/"},"wordCount":582,"commentCount":4,"publisher":{"@id":"https:\/\/www.indowhiz.com\/articles\/#organization"},"image":{"@id":"https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/#primaryimage"},"thumbnailUrl":"https:\/\/www.indowhiz.com\/articles\/wp-content\/uploads\/2023\/03\/Cover-Cloudflare-cache-everything-and-AdSense.jpg","keywords":["adsense","cloudflare"],"articleSection":["Cyberspace"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/","url":"https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/","name":"Cloudflare's \"Cache Everything\" and AdSense Ad Unit Issue &#8211; Indowhiz","isPartOf":{"@id":"https:\/\/www.indowhiz.com\/articles\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/#primaryimage"},"image":{"@id":"https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/#primaryimage"},"thumbnailUrl":"https:\/\/www.indowhiz.com\/articles\/wp-content\/uploads\/2023\/03\/Cover-Cloudflare-cache-everything-and-AdSense.jpg","datePublished":"2023-03-15T10:58:59+00:00","dateModified":"2023-04-01T05:40:56+00:00","description":"Using Cloudflare's \"cache everything\" may make AdSense showing blank advertisements, and may reduce your revenue. Here's the solution.","breadcrumb":{"@id":"https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/#primaryimage","url":"https:\/\/www.indowhiz.com\/articles\/wp-content\/uploads\/2023\/03\/Cover-Cloudflare-cache-everything-and-AdSense.jpg","contentUrl":"https:\/\/www.indowhiz.com\/articles\/wp-content\/uploads\/2023\/03\/Cover-Cloudflare-cache-everything-and-AdSense.jpg","width":1279,"height":719},{"@type":"BreadcrumbList","@id":"https:\/\/www.indowhiz.com\/articles\/en\/cloudflares-cache-everything-adsense-issue\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Articles","item":"https:\/\/www.indowhiz.com\/articles\/en\/home\/"},{"@type":"ListItem","position":2,"name":"Science and Technology","item":"https:\/\/www.indowhiz.com\/articles\/en\/category\/science-technology\/"},{"@type":"ListItem","position":3,"name":"Cyberspace","item":"https:\/\/www.indowhiz.com\/articles\/en\/category\/science-technology\/cyberspace\/"},{"@type":"ListItem","position":4,"name":"Cloudflare&#8217;s &#8220;Cache Everything&#8221; and AdSense Ad Unit Issue"}]},{"@type":"WebSite","@id":"https:\/\/www.indowhiz.com\/articles\/#website","url":"https:\/\/www.indowhiz.com\/articles\/","name":"Indowhiz","description":"The reliable information provider","publisher":{"@id":"https:\/\/www.indowhiz.com\/articles\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.indowhiz.com\/articles\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.indowhiz.com\/articles\/#organization","name":"Indowhiz","url":"https:\/\/www.indowhiz.com\/articles\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.indowhiz.com\/articles\/#\/schema\/logo\/image\/","url":"https:\/\/www.indowhiz.com\/articles\/wp-content\/uploads\/2020\/07\/logo-indowhiz-v3.png","contentUrl":"https:\/\/www.indowhiz.com\/articles\/wp-content\/uploads\/2020\/07\/logo-indowhiz-v3.png","width":280,"height":56,"caption":"Indowhiz"},"image":{"@id":"https:\/\/www.indowhiz.com\/articles\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/indowhiz\/","https:\/\/x.com\/4Faster","https:\/\/www.instagram.com\/indowhiz\/","https:\/\/www.pinterest.com\/indowhiz\/","https:\/\/www.youtube.com\/indowhiz"]},{"@type":"Person","@id":"https:\/\/www.indowhiz.com\/articles\/#\/schema\/person\/7b9a73764f92b8b7b6040eb1f83f8957","name":"Philip F. E. Adipraja","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0428d2ce65cedc300cc77fbea17fc8fdeee4e7d92b137a1f2cd3efc80bb88069?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0428d2ce65cedc300cc77fbea17fc8fdeee4e7d92b137a1f2cd3efc80bb88069?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0428d2ce65cedc300cc77fbea17fc8fdeee4e7d92b137a1f2cd3efc80bb88069?s=96&d=mm&r=g","caption":"Philip F. E. Adipraja"},"description":"Philip is a Computer Science and Information Engineering student at National Central University, Taiwan. His fields of interest are software engineering, modeling &amp; simulation, intelligent transport system, and smart manufacturing.","sameAs":["https:\/\/www.indowhiz.com","https:\/\/www.facebook.com\/4faster"],"url":"https:\/\/www.indowhiz.com\/articles\/author\/philipfaster\/"}]}},"modified_by":"Philip F. E. Adipraja","_links":{"self":[{"href":"https:\/\/www.indowhiz.com\/articles\/wp-json\/wp\/v2\/posts\/7438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.indowhiz.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.indowhiz.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.indowhiz.com\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.indowhiz.com\/articles\/wp-json\/wp\/v2\/comments?post=7438"}],"version-history":[{"count":23,"href":"https:\/\/www.indowhiz.com\/articles\/wp-json\/wp\/v2\/posts\/7438\/revisions"}],"predecessor-version":[{"id":7976,"href":"https:\/\/www.indowhiz.com\/articles\/wp-json\/wp\/v2\/posts\/7438\/revisions\/7976"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.indowhiz.com\/articles\/wp-json\/wp\/v2\/media\/7638"}],"wp:attachment":[{"href":"https:\/\/www.indowhiz.com\/articles\/wp-json\/wp\/v2\/media?parent=7438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.indowhiz.com\/articles\/wp-json\/wp\/v2\/categories?post=7438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.indowhiz.com\/articles\/wp-json\/wp\/v2\/tags?post=7438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}