# Workers - Workers fetch requests now support cf.vary

Publisher-attributed story with a reviewed brief or permitted publisher paragraph. The original publisher is responsible for the linked reporting.

- Publisher: Cloudflare Developers
- Category: Cloud
- Original publication time: 2026-06-28T00:00:00Z
- First observed by NexusTechWire: 2026-10-01T15:54:33Z
- Original source: https://developers.cloudflare.com/changelog/post/2026-06-28-cf-vary-request-option/
- NexusTechWire record: https://nexustechwire.com/news/news-8f8f20e2d19e10eb4b39

## From the publisher

Workers fetch() requests now support the cf.vary request option. Use cf.vary to control how Cloudflare caches origin responses with a Vary header for a single subrequest. src/index.jsjsexport default \{ async fetch(request) \{ return fetch(request, \{ cf: \{ vary: \{ default: \{ action: "bypass" \}, headers: \{ accept: \{ action: "normalize", media\_types: \["text/html", "application/json"\], \}, "accept-language": \{ action: "normalize", languages: \["en", "fr", "de"\], \}, \}, \}, \}, \}); \}, \}; src/index.tstsexport default \{ async fetch(request): Promise\<Response\> \{ return fetch(request, \{ cf: \{ vary: \{ default: \{ action: "bypass" \}, headers: \{ accept: \{ action: "normalize", media\_types: \["text/html", "application/json"\], \}, "accept-language": \{ action: "normalize", languages: \["en", "fr", "de"\], \}, \}, \}, \}, \}); \}, \} satisfies ExportedHandler; For more information, refer to cf.vary.

Source license: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Publisher excerpt shortened and converted to plain text. Original source license applies.

Read the full original: [Cloudflare Developers](https://developers.cloudflare.com/changelog/post/2026-06-28-cf-vary-request-option/)

This record does not reproduce the complete article or represent independent confirmation of every source claim.
