<?xml version="1.0" encoding="utf-8"?>
    <feed xmlns="http://www.w3.org/2005/Atom">
     <title>BigBinary Blog</title>
     <link href="https://www.bigbinary.com/feed.xml" rel="self"/>
     <link href="https://www.bigbinary.com/"/>
     <updated>2026-03-08T07:02:52+00:00</updated>
     <id>https://www.bigbinary.com/</id>
     <entry>
       <title><![CDATA[CDN caching issue involving Cloudfront and Cloudflare]]></title>
       <author><name>Unnikrishnan KP</name></author>
      <link href="https://www.bigbinary.com/blog/cdn-caching-issue-involving-cloudfront-and-cloudflare"/>
      <updated>2026-02-02T12:00:00+00:00</updated>
      <id>https://www.bigbinary.com/blog/cdn-caching-issue-involving-cloudfront-and-cloudflare</id>
      <content type="html"><![CDATA[<p>Recently, some <a href="https://neeto.com">Neeto</a> customers reported experiencing a verylong page load time. For some of them, the page didn't even load. We found thatthe issue is related to CDN caching.</p><p>Neeto uses React.js for the front-end code, and the asset files are hosted atCloudFront. To complicate matters, we use CloudFlare as our DNS resolver.Between CloudFlare and Cloudfront, we were not sure what was being cached and atwhat level. Since this problem was being faced only by our customers, it was abit difficult to reproduce and debug.</p><p>The whole setup is like this:</p><ul><li>Browsers make requests to https://cdn.neetox.com/assets/xyz.js</li><li>Clouflare forwards the request to Cloudfront</li><li>CloudFront acting as the caching layer will try to get the data from theNeetoDeploy server and will cache the result</li></ul><p>If the browser is not getting the requested file, then in this chain, something didn'twork correctly.</p><p>During the investigation, we found that Cloudflare was being a bit mischievousand was doing things it should not be doing. Watch the video to see what I mean.</p><p>The video mentioned below is the one I created for the internal Neeto folks. Thevideo is being published <strong>as-is</strong> without any modifications.</p><p>&lt;iframewidth=&quot;560&quot;height=&quot;315&quot;src=&quot;https://www.youtube.com/embed/_TCU14fN08A?si=Xy_o6cpSjGvsFFCm&quot;title=&quot;CDN caching issue involving Cloudfront and Cloudflare&quot;frameborder=&quot;0&quot;allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot;referrerpolicy=&quot;strict-origin-when-cross-origin&quot;allowfullscreen</p><blockquote><p>&lt;/iframe&gt;</p></blockquote><p>You can see the transcript of the video<a href="https://unni.neetorecord.com/watch/e4c66b38fc57e395fd84">here</a>.</p>]]></content>
    </entry>
     </feed>