# Latest update requires cache purge in CloudFlare

**URL:** https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166
**Category:** Self-hosting
**Created:** [Octobre 31, 2017, 8:05 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166 "2017-10-31T20:05:05Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [Octobre 31, 2017, 8:49 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/21 "2017-10-31T20:49:48Z")

</div>

I could see our css has come back to normal for some seconds after DNS has changed to grey.

but after a while we get “insecure connection problem”. and I can’t confirm it!

`Your connection is not secure`

do you know how to remove the insecure connection problem?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Octobre 31, 2017, 8:51 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/22 "2017-10-31T20:51:30Z")

</div>

@Pad_Pors looks like your Let’s Encrypt SSL cert expired in May. Were you using a CloudFlare certificate, that now isn’t being used as traffic isn’t going through CloudFlare?

---

<div class="post-metadata">

### Author: ![Brock\_Busby](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brock_busby/32/118746_2.png) [@Brock\_Busby](https://meta.discourse.org/u/Brock_Busby)
#### Post date: [Octobre 31, 2017, 8:52 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/23 "2017-10-31T20:52:36Z")

</div>

> [@Pad\_Pors](#):
>
> but after a while we get “insecure connection problem”. and I can’t confirm it!
> 
> Your connection is not secure

Going “grey” means you do not use any Cloudflare features. Thus, you were likely using the default SSL setting in Cloudflare or have a SSL page rule set, and when you turn off Cloudflare, then SSL isn’t being applied.

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [Octobre 31, 2017, 8:54 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/24 "2017-10-31T20:54:48Z")

</div>

> [@Pad\_Pors](#):
>
> I could see our css has come back to normal for some seconds after DNS has changed to grey.

I can confirm that for you

 ![](https://global.discourse-cdn.com/meta/original/4X/f/2/d/f2d3ec3e7aa5b393163252bf16668c489cde29e7.png)  
The browser page says that the certificate expired on May 22, 2017 now…

---

<div class="post-metadata">

### Author: ![barreeeiroo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barreeeiroo/32/165264_2.png) [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)
#### Post date: [Octobre 31, 2017, 8:55 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/25 "2017-10-31T20:55:07Z")

</div>

I CAN CONFIRM THAT IT’S AN ISSUE WITH CLOUDFLARE

I accessed through IP and it’s perfectly working

* * *

Trying to clear all cache…

---

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [Octobre 31, 2017, 8:57 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/26 "2017-10-31T20:57:44Z")

</div>

I’m little bit confused. more than my knowledge! but I guess I should follow this thread:

> [@Allow SSL / HTTPS for your Discourse Docker setup](https://meta.discourse.org/t/allowing-ssl-https-for-your-discourse-docker-setup/13847):
>
> This guide is likely out of date as there are now very few reasons not to use the built-in Let’s Encrypt certificate that Just Works. See also: 2023-04-10 @pfaffman says: This is left here mostly for historical purposes. So you’d like to enable SSL for your Docker-based Discourse setup? Let’s do it! This guide assumes you used all the [standard install](https://meta.discourse.org/t/142537?silent=true) defaults – a container configuration file at/var/discourse/containers/app.yml and Discourse docker is installed at: /var/discourse Buy a SS…

am I right?

* * *

p.s.: thanks @jomaxro for your experimenting spirit! 🙂 I was just reading meta to find out some clue before your experiments!

---

<div class="post-metadata">

### Author: ![barreeeiroo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barreeeiroo/32/165264_2.png) [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)
#### Post date: [Octobre 31, 2017, 9:01 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/27 "2017-10-31T21:01:03Z")

</div>

**Enabling Development Mode in Cloudflare is a temp fix for this issue**

I’m testing other stuff to check if it’s permanent

---

<div class="post-metadata">

### Author: ![Brock\_Busby](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brock_busby/32/118746_2.png) [@Brock\_Busby](https://meta.discourse.org/u/Brock_Busby)
#### Post date: [Octobre 31, 2017, 9:01 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/28 "2017-10-31T21:01:45Z")

</div>

> [@barreeeiroo](#):
>
> I CAN CONFIRM THAT IT’S AN ISSUE WITH CLOUDFLARE

I’m not sure Cloudflare is the issue here. As I’ve mentioned, we hadn’t done any changes to our code or to Cloudflare, and when beta14 hit, then we have the issue.

---

<div class="post-metadata">

### Author: ![barreeeiroo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barreeeiroo/32/165264_2.png) [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)
#### Post date: [Octobre 31, 2017, 9:04 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/29 "2017-10-31T21:04:33Z")

</div>

Probably in that update some CSS stuff changed (I’m not sure) and it’s wrongly cached and/or processed by Cloudflare

---

<div class="post-metadata">

### Author: ![Brock\_Busby](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brock_busby/32/118746_2.png) [@Brock\_Busby](https://meta.discourse.org/u/Brock_Busby)
#### Post date: [Octobre 31, 2017, 9:06 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/30 "2017-10-31T21:06:51Z")

</div>

We use Cloudflare as a reverse proxy because we get DDoS attcked quite often. We cannot live with Cloudflare in dev mode as that exposes our IP address.

---

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [Octobre 31, 2017, 9:09 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/31 "2017-10-31T21:09:50Z")

</div>

you’re right. but now even if there is a bug in the latest update, it can be reproduced. and the bug can be solved.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Octobre 31, 2017, 9:26 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/32 "2017-10-31T21:26:11Z")

</div>

@RyanK is there any way you can help escalating this for us? Lots of Discourse sites can no longer use CloudFlare due to Rocket Loader breaking us.

---

<div class="post-metadata">

### Author: ![barreeeiroo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barreeeiroo/32/165264_2.png) [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)
#### Post date: [Octobre 31, 2017, 9:30 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/33 "2017-10-31T21:30:09Z")

</div>

**PERMANTENT FIX:**

1. Login to Cloudflare
2. Go to Speed Section of your domain
3. Uncheck _CSS_
4. Go to Caching Section
5. Click the Arrow next to _Purge Individual Files_ and hit _Purge Everything_, and then _Confirm_
6. Wait a few seconds and check if your site loads properly

* * *

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/3/9346e5e4fa4d6f01b472d62c45cc09ecd7f097c1.png)

And it’s fixed 😊

---

<div class="post-metadata">

### Author: ![Brock\_Busby](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brock_busby/32/118746_2.png) [@Brock\_Busby](https://meta.discourse.org/u/Brock_Busby)
#### Post date: [Octobre 31, 2017, 9:49 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/34 "2017-10-31T21:49:51Z")

</div>

Thanks for this temp solution

> [@barreeeiroo](#):
>
> Uncheck JS, CSS and HTML (yes, the three checkboxes and make sure they have been disabled refreshing the page)

In our testing, you only need to uncheck CSS.

Keep in mind this sets it so your entire domain isn’t auto minimizing CSS. You may want to create a page rule for your Discourse subdomain and add the rule “Disable Performance”. Keep in mind this turns off all auto-minify, Rocket Loader, etc ONLY for your Discourse subdomain.

> [@barreeeiroo](#):
>
> Click the Arrow next to Purge Individual Files and hit Purge Everything, and then Confirm

I strongly recommend you check “Purge Individual Files” and then type in your Discourse domain with trailing “/\*” (slash star). This way you are only clearing all cache on your Discourse instance and not your entire origin domain.

- [http://yourdiscoursedomain/](http://yourdiscoursedomain/)\*
- [https://yourdiscoursedomain/](https://yourdiscoursedomain/)\* (if using SSL)

---

<div class="post-metadata">

### Author: ![barreeeiroo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barreeeiroo/32/165264_2.png) [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)
#### Post date: [Octobre 31, 2017, 9:51 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/35 "2017-10-31T21:51:03Z")

</div>

> [@Brock\_Busby](#):
>
> I strongly recommend you check “Purge Individual Files” and then type in your Discourse domain with trailing “/\*” (slash star). This way you are only clearing all cache on your Discourse instance and not your entire origin domain.

I’ve tried also that, but then Cloudflare said: _Purging **1** file…_, so I prefered to Purge Everything, as maybe it doesn’t support wildcards 😅

---

<div class="post-metadata">

### Author: ![RyanK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryank/32/297314_2.png) [@RyanK](https://meta.discourse.org/u/RyanK)
#### Post date: [Octobre 31, 2017, 9:51 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/36 "2017-10-31T21:51:56Z")

</div>

Absolutely. Let me see if I can get some eyes on this. We are actually having our company retreat this week so I think everyone is in the pacific timezone 🙂

---

<div class="post-metadata">

### Author: ![barreeeiroo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barreeeiroo/32/165264_2.png) [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)
#### Post date: [Octobre 31, 2017, 9:52 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/37 "2017-10-31T21:52:27Z")

</div>

> [@jomaxro](#):
>
> No issues on my sandbox: [https://test.jomaxro.win/](https://test.jomaxro.win/)

Mmm, is the Flags tab working? On mine not 😕  
But maybe it’s an issue with a plugin, just to discard a general bug

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Octobre 31, 2017, 9:53 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/38 "2017-10-31T21:53:02Z")

</div>

Thanks heaps Ryan, Hope you enjoy your retreat, we do have a workaround so its not mega super extra urgent.

---

<div class="post-metadata">

### Author: ![Brock\_Busby](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brock_busby/32/118746_2.png) [@Brock\_Busby](https://meta.discourse.org/u/Brock_Busby)
#### Post date: [Octobre 31, 2017, 9:53 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/39 "2017-10-31T21:53:11Z")

</div>

> [@barreeeiroo](#):
>
> I’ve tried also that, but then Cloudflare said: Purging 1 file…, so I prefered to Purge Everything, as maybe it doesn’t support wildcards 😅

My solution worked for me. For example, “[https://discussions.ftw.in/](https://discussions.ftw.in/)\*” will purge our entire Discourse domain but not our origin.

---

<div class="post-metadata">

### Author: ![RyanK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryank/32/297314_2.png) [@RyanK](https://meta.discourse.org/u/RyanK)
#### Post date: [Octobre 31, 2017, 9:53 UTC](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166/40 "2017-10-31T21:53:50Z")

</div>

It’s not officially starting for a couple days, but most of the global team is either already in SF or en route

[Page précédente](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166.md?page=1)

[Page suivante](https://meta.discourse.org/t/latest-update-requires-cache-purge-in-cloudflare/73166.md?page=3)
