# Javascript and CSS Assets sporadically returning text/plain with a body "hello"

**URL:** <https://answers.netlify.com/t/javascript-and-css-assets-sporadically-returning-text-plain-with-a-body-hello/75137>\
**Category:** Support\
**Tags:** caching, redirects, deployment\
**Created:** [September 8, 2022, 5:19pm UTC](https://answers.netlify.com/t/javascript-and-css-assets-sporadically-returning-text-plain-with-a-body-hello/75137 "2022-09-08T17:19:15Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![john2](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/john2/32/41088_2.png) [@john2](https://answers.netlify.com/u/john2)\
**Post date:** [September 8, 2022, 5:19pm UTC](https://answers.netlify.com/t/javascript-and-css-assets-sporadically-returning-text-plain-with-a-body-hello/75137/1 "2022-09-08T17:19:15Z")

</div>

Since at least yesterday our customers, primarily in California, have been getting incorrect assets served to them. Our JS and CSS files live under /assets and we have observed responses sporadically being return that are content-type “text/plain” with a body of “hello” instead of the correct Javascript or CSS files. This is happening to a subset of requests and not every asset in the page load is effected in the same way each time.

Initially we thought this might be Cloudflare (which sits in-front of the app) but after disabling it temporarily and removing all caching we still saw these strange responses from Netlify.

We have not had reports of this happening outside of California.

This is an Ember.js application.

- site name: seated-fulton
- sample page effected: [https://go.seated.com/tour-events/f169b4e4-cd8a-4336-ab16-c4c8536ce8e0](https://go.seated.com/tour-events/f169b4e4-cd8a-4336-ab16-c4c8536ce8e0)

---

<div class="post-metadata">

**Author:** ![dan1er](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/dan1er/32/41099_2.png) [@dan1er](https://answers.netlify.com/u/dan1er)\
**Post date:** [September 8, 2022, 9:53pm UTC](https://answers.netlify.com/t/javascript-and-css-assets-sporadically-returning-text-plain-with-a-body-hello/75137/2 "2022-09-08T21:53:46Z")

</div>

We are experiencing an issue with some of our javascript and CSS files, this issue is location related, it only happens to members of our team in San Francisco, or if

 ![error](https://global.discourse-cdn.com/netlify/original/3X/3/3/330626b6e91c22219f622cf56c084928bcc3bec0.png)  
we use a VPN, when we open the website, we are getting a blank page, after checking the assets, we noticed that the content of some JS and CSS is being replaced with the text: “hello”, we contacted Cloudflare, and they asked us to open a ticket here, Can someone please help?

---

<div class="post-metadata">

**Author:** ![coelmay](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/coelmay/32/24427_2.png) [@coelmay](https://answers.netlify.com/u/coelmay)\
**Post date:** [September 8, 2022, 10:11pm UTC](https://answers.netlify.com/t/javascript-and-css-assets-sporadically-returning-text-plain-with-a-body-hello/75137/3 "2022-09-08T22:11:50Z")

</div>

Hi @dan1er

I have moved your post into an existing thread by @john2 which is related to streamline things. I have also escalated this to ensure Netlify Support Engineers see this.

---

<div class="post-metadata">

**Author:** ![john2](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/john2/32/41088_2.png) [@john2](https://answers.netlify.com/u/john2)\
**Post date:** [September 8, 2022, 11:01pm UTC](https://answers.netlify.com/t/javascript-and-css-assets-sporadically-returning-text-plain-with-a-body-hello/75137/4 "2022-09-08T23:01:29Z")

</div>

Thanks for confirming it’s not just us @dan1er

Cloudflare support are telling me it’s on the Netlify side.

Netlify support are telling me it’s on the Cloudflare side.

Both services say multiple customers have reported it.

Our very rough and early investigation leads us to believe the hello file is most likely being served somewhere from the Netlify stack before it hits the deployed assets. Cloudflare caching just increases the chance of more users seeing it.

We have used Cloudflare + Netlify for years without a problem like this.

---

<div class="post-metadata">

**Author:** ![coelmay](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/coelmay/32/24427_2.png) [@coelmay](https://answers.netlify.com/u/coelmay)\
**Post date:** [September 8, 2022, 11:14pm UTC](https://answers.netlify.com/t/javascript-and-css-assets-sporadically-returning-text-plain-with-a-body-hello/75137/5 "2022-09-08T23:14:13Z")

</div>

There is a Support Guide about why _ **not** _ to use Cloudflare in front of Netlify @john2, @dan1er

> [@\[Support Guide\] What problems could occur when using Cloudflare in front of Netlify?](https://answers.netlify.com/t/support-guide-what-problems-could-occur-when-using-cloudflare-in-front-of-netlify/138):
>
> Last reviewed by Netlify Support - August, 2023 Note: We recommend not using both Cloudflare’s CDN (“Accelerate and Protect”, the orange cloud in their UI) and Netlify for the same site at the same time. Why? Read on! Netlify’s web service is not designed to work optimally with another CDN “in front of” our CDN. [Proxying to our service is in general not supported](https://answers.netlify.com/t/support-guide-why-not-proxy-to-netlify/8869) and we advise you not to do it for best hosting results. Cloudflare has made similar statements that it doesn’t recommend this usa…

---

<div class="post-metadata">

**Author:** ![fool](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/fool/32/37_2.png) [@fool](https://answers.netlify.com/u/fool)\
**Post date:** [September 8, 2022, 11:30pm UTC](https://answers.netlify.com/t/javascript-and-css-assets-sporadically-returning-text-plain-with-a-body-hello/75137/6 "2022-09-08T23:30:42Z")

</div>

Hey folks! Sorry to hear about the trouble.

I’ve raised this with our security team and as far as we can tell it is specific to cloudflare’s cache, and while I can’t promise it doesn’t affect anyone else, it does not seem to originate on our service.

As Coel has helpfully pointed out, we do not provide tech support for people who proxy to our service from Cloudflare nor anywhere else, at least not below the enterprise account level.

One customer who reported this yesterday resolved it by turning off caching at Cloudflare, so you are welcome to try that out as well if you will keep using the unsupported configuration.

In the end, we still recommend you not proxy to us, which will also ensure that no problems in Cloudflare’s handling of Netlify requests or in its cache can affect your site’s service.

Our networking team will continue the investigation for us tomorrow, but since this is entirely in cloudflare’s cache as far as we can tell, they may not find anything to help.

Please do let us know in this thread if you discover anything else in the meantime that could be relevant.

---

<div class="post-metadata">

**Author:** ![dan1er](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/dan1er/32/41099_2.png) [@dan1er](https://answers.netlify.com/u/dan1er)\
**Post date:** [September 8, 2022, 11:33pm UTC](https://answers.netlify.com/t/javascript-and-css-assets-sporadically-returning-text-plain-with-a-body-hello/75137/8 "2022-09-08T23:33:56Z")

</div>

Same here, thanks @john2 we arrived at the same conclusion that you did, hopefully, we’ll be able to find a solution for it quickly.

---

<div class="post-metadata">

**Author:** ![dan1er](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/dan1er/32/41099_2.png) [@dan1er](https://answers.netlify.com/u/dan1er)\
**Post date:** [September 8, 2022, 11:35pm UTC](https://answers.netlify.com/t/javascript-and-css-assets-sporadically-returning-text-plain-with-a-body-hello/75137/9 "2022-09-08T23:35:10Z")

</div>

Thanks @fool, I’ll repost your comment on the Cloudflare ticket we created.

---

<div class="post-metadata">

**Author:** ![john2](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/john2/32/41088_2.png) [@john2](https://answers.netlify.com/u/john2)\
**Post date:** [September 8, 2022, 11:45pm UTC](https://answers.netlify.com/t/javascript-and-css-assets-sporadically-returning-text-plain-with-a-body-hello/75137/10 "2022-09-08T23:45:09Z")

</div>

Thanks for the update. I’ve followed up with Cloudflare. We rely on Cloudflare Workers a bunch so it’s not a simple case of us just turning this off.

---

<div class="post-metadata">

**Author:** ![john2](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/john2/32/41088_2.png) [@john2](https://answers.netlify.com/u/john2)\
**Post date:** [September 8, 2022, 11:55pm UTC](https://answers.netlify.com/t/javascript-and-css-assets-sporadically-returning-text-plain-with-a-body-hello/75137/11 "2022-09-08T23:55:51Z")

</div>

Here is the convo over on the Cloudflare side [https://community.cloudflare.com/t/caching-issue-hello-in-the-respone/417842](https://community.cloudflare.com/t/caching-issue-hello-in-the-respone/417842)

---

<div class="post-metadata">

**Author:** ![marcus](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/marcus/32/2651_2.png) [@marcus](https://answers.netlify.com/u/marcus)\
**Post date:** [September 9, 2022, 10:10am UTC](https://answers.netlify.com/t/javascript-and-css-assets-sporadically-returning-text-plain-with-a-body-hello/75137/12 "2022-09-09T10:10:26Z")

</div>

We’ve likely found the cause for this and rolled back the code that would have caused this.  
Please clear you Cloudflare caches if you’re still seeing this.

Thank you for the patience while we investigated this.  
We’ll follow up with a more detailed explanation here soon.

---

<div class="post-metadata">

**Author:** ![john2](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/john2/32/41088_2.png) [@john2](https://answers.netlify.com/u/john2)\
**Post date:** [September 9, 2022, 11:53am UTC](https://answers.netlify.com/t/javascript-and-css-assets-sporadically-returning-text-plain-with-a-body-hello/75137/13 "2022-09-09T11:53:52Z")

</div>

thanks for the fix, super interested to hear the details

---

<div class="post-metadata">

**Author:** ![mrdg](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mrdg](https://answers.netlify.com/u/mrdg)\
**Post date:** [September 9, 2022, 5:44pm UTC](https://answers.netlify.com/t/javascript-and-css-assets-sporadically-returning-text-plain-with-a-body-hello/75137/14 "2022-09-09T17:44:29Z")

</div>

Hey everyone, this was definitely an issue on our side. We were testing an internal change to our routing mechanism and returned a testing message for some of the requests. Unfortunately, in a subset of CDN locations, for customers on our regular network (not HP Edge) that have a proxy in front of Netlify, those test responses were routed through their proxy. That meant that these test responses were cached there and served instead of the corresponding asset.

We reverted the change as soon as it was reported. Sorry for the inconvenience this caused.
