Skip to content

Add Workers cf.originRangeRequests types - #7059

Draft
zaidoon1 wants to merge 2 commits into
cloudflare:mainfrom
zaidoon1:zaidoon/CACHE-5646-workers-origin-range-requests
Draft

Add Workers cf.originRangeRequests types#7059
zaidoon1 wants to merge 2 commits into
cloudflare:mainfrom
zaidoon1:zaidoon/CACHE-5646-workers-origin-range-requests

Conversation

@zaidoon1

Copy link
Copy Markdown
Contributor

Adds typed support for the Workers cf.originRangeRequests request option with "on" and "off" values. The cf object is serialized generically, so this does not require a runtime implementation change.

The type coverage accepts both Workers values and rejects the Cache Rules-only "default" value. The existing cache settings test also covers retaining the property on Request.cf.

Generated type snapshots are pending and will be taken from the snapshot CI artifact.

Testing:

  • git diff --check
  • Local build and tests not run; relying on CI as requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant