Varnish VCL でリクエストをコントロールできるようになった。 例: origin で feature flag を切り替える if (req.restarts == 0) { set req.backend = F_origin_0; set req.http.tmpOrigUrl = req.url; set req.url = "/response-headers?Flags=group-A,new-header,search-enabled"; } else { set req.backend = F_origin_1; is disabled. This re-enables it. set req.http.Fastly-Force-Shield = "1"; }/ return(lookup);
Workers Works https://developers.cloudflare.com/workers/learning/how-workers- works/ Security Model https://developers.cloudflare.com/workers/learning/security- model/
this.state = state; // `blockConcurrencyWhile()` ensures no requests are delivered until // initialization completes. this.state.blockConcurrencyWhile(async () => { let stored = await this.state.storage.get("value"); // After initialization, future reads do not need to access storage. this.value = stored || 0; }); } // Handle HTTP requests from clients. async fetch(request) { // use this.value rather than storage } }