<https://androiddev.social/@terrakok/1167546880398...
# compose-web
k
b
Unfortunate 😬
w
I think you can get around this with a ServiceWorker that manually caches and rewrite the headers, but yeah, it's unfortunate. 😞
t
Just use Cloudflare CDN its free forever upto 25 MB, and also much better and faster than GitHub CDN. I see no reason to ever used GH CDN
👍 1
e
How does one use cloudflare with a gh repo? 🤔
w
You can just use Cloudflare Pages. It lets you hook it up to a GitHub repo that redeploys on each commit. That's the flow I use to drive my site.
e
Cool didn't know that existed!
w
The limits are ridiculously generous. 20000 static files at 25 MB each, all cached and served on the CDN.
🔥 1
When I was evaluating them, I didn't really find any upside to GH Pages vs Cloudflare.
1
blob ty sign 1
b
One nuance about: "every 10 minutes your cache becomes invalid, and you force users to repeatedly re-download the Wasm bundle". It's not necessarily that bad, what happens is the browser will consider its cached version to be stale (and eligible to eviction) after 10 minutes. But if it still has the file in its cache after 10 minutes, it should use
If-None-Match
and the server will respond with
304 Not Modified
-> no re-download. Not as good as it could be (
immutable
) of course.