Modify the retriever worker to include the remaining egress quota in a custom response headers. This is a common practice for rate limiting implementations, see e.g. GitHub REST API docs.
The worker should return two headers - one for the CDN egress quota and another for the cache-miss egress quota.
Ideally, the returned value should already account for the egress of the response being served.
Modify the retriever worker to include the remaining egress quota in a custom response headers. This is a common practice for rate limiting implementations, see e.g. GitHub REST API docs.
The worker should return two headers - one for the CDN egress quota and another for the cache-miss egress quota.
Ideally, the returned value should already account for the egress of the response being served.