Edge Caching

Does Fly implement a version of edge caching like Vercel? We’re sending responses with cache headers, but they are not getting cached anywhere so I was confused whether something like this existed. After reading this article Apollo GraphQL + Edge Caching · Fly Docs, it made it sound like fly has edge caching built in when there are cache-control headers present.

We don’t have any baked in edge caching, though many people run nginx or Varnish on Fly to build their own. Kind of like this: The 5-hour CDN · Fly

That Apollo example is using Redis for caching, it’s application level caching. HTTP caching usually doesn’t work well for GraphQL.


Thanks Kurt!

What does this graph on https://fly.io/apps/my-app/metrics represent?

The query is

sum(rate(fly_app_http_responses_count{app="my-app",cache=~"^.+$"}[15s])) by (cache) /
ignoring (cache) group_left sum(rate(fly_app_http_responses_count{app="my-app",cache=~"^.+$"}[15s]))

Edit: Cache Hits in Metrics and First look: static asset caching have more information on this