You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm running Sablier via Caddy behind a Cloudflare tunnel. My app is a FastAPI/NiceGUI Python app, which retrieves .js files. It generally works well most of the time, but sometimes I get a bunch of errors with the .js files actually returning the Sablier loading page HTML. It looks like the following:
When I go to inspect those .js files in the browser, it appears the text is actually the Sablier loading page:
<h1><span>Starting </span> <span class="error_code"></span>...</h1>
<p class="output"><span>Your instance(s) will stop after 6 hours of inactivity</span>.</p>
...
What I think is happening is Cloudflare is caching that loading page and returning it for all requests, even after the container is up. I notice the page doesn't have any headers to affect caching. Shouldn't it have some to instruct clients not cache it?
Context
Sablier version: v1.8.0-beta.18
Provider: Docker version 27.2.0, build 3ab4256
Reverse proxy: caddy
Sablier running inside a container? yes
Expected behavior
Maybe the Sablier loading page should specifically have no cache headers.
The text was updated successfully, but these errors were encountered:
It still unfortunately happens around 5% of the time, usually when I hit my website on my phone (Safari). It's rather difficult to debug. I know that NiceGUI/FastAPI use websockets, so perhaps using dynamic strategy is not the right thing. Everything works fine with blocking strategy.
Describe the bug
I'm running Sablier via Caddy behind a Cloudflare tunnel. My app is a FastAPI/NiceGUI Python app, which retrieves .js files. It generally works well most of the time, but sometimes I get a bunch of errors with the .js files actually returning the Sablier loading page HTML. It looks like the following:
When I go to inspect those .js files in the browser, it appears the text is actually the Sablier loading page:
What I think is happening is Cloudflare is caching that loading page and returning it for all requests, even after the container is up. I notice the page doesn't have any headers to affect caching. Shouldn't it have some to instruct clients not cache it?
Context
Expected behavior
Maybe the Sablier loading page should specifically have no cache headers.
The text was updated successfully, but these errors were encountered: