Skip to content

Report remaining egress quotas in response headers #378

@bajtos

Description

@bajtos

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.

Metadata

Metadata

Assignees

Labels

Projects

Status

🏗 in progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions