How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Workers - Workers fetch requests now support cf.vary

calendar_today June 28, 2026 domain cloudflare

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. JavaScript export 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” ] , }, }, }, }, } ) ; }, }; TypeScript export default { async fetch ( request ) : Promise Response > { return fetch ( r

open_in_new Read original post