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
We're currently not utilising Cloudflare's caching at all since images are loaded directly from GCP storage (also resulting in higher bandwidth costs).
A solution to this (and future file hosting/static content caching) would be to add a cache server (most likely just a minimal nginx container) that proxies requests towards the appropriate GCP storage buckets. This would save external GCP bandwidth and allow for caching through Cloudflare.
For now, it's only approximately 50 images and usage is still pretty low, so it's probably not yet worth, although a valid suggestion!
Unfortunately, it looks like the GCP CDN doesn't work without a GCP loadbalancer, which would add another flat... 16€ or something on top of the current costs.
I'll see if the GCP -> nginx -> Cloudflare caching actually does anything, although with the rest of the k8s setup, it's mostly for experimenting, not so much due to an actual need 😄
Thanks for your suggestion though - was astonished to see an answer to one of my monologue-rambling issues 😛
We're currently not utilising Cloudflare's caching at all since images are loaded directly from GCP storage (also resulting in higher bandwidth costs).
A solution to this (and future file hosting/static content caching) would be to add a cache server (most likely just a minimal nginx container) that proxies requests towards the appropriate GCP storage buckets. This would save external GCP bandwidth and allow for caching through Cloudflare.
Example: the mission image for
Diyala Rumble
is currently loaded from https://slotlist-info.storage.googleapis.com/images/uploads/missions/diyala-rumble/e643c149-53b1-4ce4-a8f2-32e47fd10e65. After the cache server introduction, the URL would be created as e.g. https://cdn.slotlist.info/images/missions/diyala-rumble/e643c149-53b1-4ce4-a8f2-32e47fd10e65. The nginx server listening tocdn.slotlist.info
would the do aproxy_pass
toslotlist-info.storage.googleapis.com
and cache the image appropriately.Tasks
The text was updated successfully, but these errors were encountered: