# Splash screen stuck until hard refresh

**URL:** <https://meta.discourse.org/t/splash-screen-stuck-until-hard-refresh/261206>\
**Category:** Product Support\
**Created:** [April 10, 2023, 4:16pm UTC](https://meta.discourse.org/t/splash-screen-stuck-until-hard-refresh/261206 "2023-04-10T16:16:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![yanokwa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yanokwa/32/105083_2.png) [@yanokwa](https://meta.discourse.org/u/yanokwa)\
**Post date:** [April 14, 2023, 9:53pm UTC](https://meta.discourse.org/t/splash-screen-stuck-until-hard-refresh/261206/5 "2023-04-14T21:53:28Z")

</div>

KeyCDN is the CDN in question. I tried enabling [OriginShield](https://www.keycdn.com/support/origin-shield) and adding a `template.yml` (in the style of [cloudflare.template.yml](https://github.com/discourse/discourse_docker/blob/main/templates/cloudflare.template.yml)) to my `app.yml`, but I was still getting 429s.

Rather than keep futzing with it, I’ve switched to BunnyCDN and that seems to be working better.

I’ve put the template file below in case it helps anyone else.

> **keycdn.template.yml**
>
> ```yml
> run:
> - file:
> path: /tmp/add-keycdn-ips
> chmod: +x
> contents: |
> #!/bin/bash -e
> # Add list of keycdn ips
> curl -s 'https://www.keycdn.com/shield-prefixes.json' | \
> python3 -c "import sys, json; print('\n'.join(json.load(sys.stdin)['prefixes']))" > /tmp/keycdn-ips
> 
> # Make into nginx commands and escape for inclusion into sed append command
> CONTENTS=$(</tmp/keycdn-ips sed 's/^/set_real_ip_from /' | sed 's/$/;/' | tr '\n' '\\' | sed 's/\\/\\n/g')
>         
> echo keycdn IPs:
> echo $(echo | sed "/^/a $CONTENTS")
> # Insert into discourse.conf
> sed -i "/sendfile on;/a $CONTENTS\nreal_ip_header X-Forwarded-For;\nreal_ip_recursive on;" /etc/nginx/conf.d/discourse.conf
> # Clean up
> rm /tmp/keycdn-ips
> 
> - exec: "/tmp/add-keycdn-ips"
> - exec: "rm /tmp/add-keycdn-ips"
> 
> ```

---

_[View the full topic](https://meta.discourse.org/t/splash-screen-stuck-until-hard-refresh/261206)._
