---
title: "CDN caching issue involving Cloudfront and Cloudflare"
description: "CDN caching issue involving Cloudfront and Cloudflare"
canonical_url: "https://www.bigbinary.com/blog/cdn-caching-issue-involving-cloudfront-and-cloudflare"
markdown_url: "https://www.bigbinary.com/blog/cdn-caching-issue-involving-cloudfront-and-cloudflare.md"
---

# CDN caching issue involving Cloudfront and Cloudflare

CDN caching issue involving Cloudfront and Cloudflare

- Author: Unnikrishnan KP
- Published: February 2, 2026
- Categories: frontend

Recently, some [Neeto](https://neeto.com) customers reported experiencing a very
long page load time. For some of them, the page didn't even load. We found that
the issue is related to CDN caching.

Neeto uses React.js for the front-end code, and the asset files are hosted at
CloudFront. To complicate matters, we use CloudFlare as our DNS resolver.
Between CloudFlare and Cloudfront, we were not sure what was being cached and at
what level. Since this problem was being faced only by our customers, it was a
bit difficult to reproduce and debug.

The whole setup is like this:

- Browsers make requests to https://cdn.neetox.com/assets/xyz.js
- Clouflare forwards the request to Cloudfront
- CloudFront acting as the caching layer will try to get the data from the
  NeetoDeploy server and will cache the result

If the browser is not getting the requested file, then in this chain, something
didn't work correctly.

During the investigation, we found that Cloudflare was being a bit mischievous
and was doing things it should not be doing. Watch the video to see what I mean.

The video mentioned below is the one I created for the internal Neeto folks. The
video is being published **as-is** without any modifications.

<iframe
  width="560"
  height="315"
  src="https://www.youtube.com/embed/_TCU14fN08A?si=Xy_o6cpSjGvsFFCm"
  title="CDN caching issue involving Cloudfront and Cloudflare"
  frameborder="0"
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
  referrerpolicy="strict-origin-when-cross-origin"
  allowfullscreen
></iframe>

You can see the transcript of the video
[here](https://unni.neetorecord.com/watch/e4c66b38fc57e395fd84).

## Links

- [Human page](https://www.bigbinary.com/blog/cdn-caching-issue-involving-cloudfront-and-cloudflare)
