new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Cloudflare Workers · Wrangler · all subjects

external-services

21 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Node-compatible libraries limitations on Workers runtime

Many Node-compatible libraries work on Workers, but those that implement fs, http/net, or access the browser window do not directly translate to the Workers runtime, which is v8-based.

check placement status via Workers API

Query a Worker's placement status through the Workers API using curl -X GET https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/workers/services/$WORKER_NAME with Authorization header containing a Bearer token and Content-Type application/json, then pipe to jq to view results.

Protect workers.dev with Cloudflare Access

You can use Cloudflare Access to require visitors to authenticate before accessing your workers.dev URL. You can limit access to yourself, your teammates, your organization, or anyone else you specify in your access policy. You must validate the Access JWT in your Worker script using the audience (aud) tag and JWKs URL provided.

@cloudflare/kv-asset-handler package for serving static assets

The @cloudflare/kv-asset-handler package must be installed as a dev dependency to serve static assets from Workers Sites. Install it with 'npm i -D @cloudflare/kv-asset-handler'.

Page Rules workflow with Workers

When using Page Rules with Workers, the following workflow is applied: (1) Request arrives at Cloudflare data center. (2) Cloudflare decides if this request is a Worker route and evaluates, disabling a number of features including some that would be set by Page Rules. (3) Page Rules run as part of normal request processing with some features now disabled. (4) Worker executes. (5) Worker makes a same-zone or other-zone subrequest, and Cloudflare disables a number of features including some that would be set by Page Rules. Page Rules are evaluated both at the client-to-Worker request stage (step 2) and the Worker subrequest stage (step 5).

Same zone versus other zone subrequest definition

A same zone subrequest is a request the Worker makes to an orange-clouded hostname in the same zone the Worker runs on. Depending on DNS configuration, any request that falls outside that definition may be considered an other zone request by the Cloudflare network.

Always Use HTTPS Page Rule behavior with Workers

Always Use HTTPS Page Rule behavior: Client to Worker = Rule Respected. Worker to Same Zone = Rule Ignored. Worker to Other Zone = Rule Ignored.

Automatic HTTPS Rewrites Page Rule behavior with Workers

Automatic HTTPS Rewrites Page Rule behavior: Client to Worker = Rule Ignored. Worker to Same Zone = Rule Respected. Worker to Other Zone = Rule Ignored.

Browser Integrity Check Page Rule behavior with Workers

Browser Integrity Check Page Rule behavior: Client to Worker = Rule Respected. Worker to Same Zone = Rule Ignored. Worker to Other Zone = Rule Ignored.

Cache Deception Armor Page Rule behavior with Workers

Cache Deception Armor Page Rule behavior: Client to Worker = Rule Respected. Worker to Same Zone = Rule Respected. Worker to Other Zone = Rule Ignored.

Disable Zaraz Page Rule behavior with Workers

Disable Zaraz Page Rule behavior: Client to Worker = Rule Respected. Worker to Same Zone = Rule Respected. Worker to Other Zone = Rule Ignored.

Edge Cache TTL Page Rule behavior with Workers

Edge Cache TTL Page Rule behavior: Client to Worker = Rule Respected. Worker to Same Zone = Rule Respected. Worker to Other Zone = Rule Ignored.

Email Obfuscation Page Rule behavior with Workers

Email Obfuscation Page Rule behavior: Client to Worker = Rule Ignored. Worker to Same Zone = Rule Respected. Worker to Other Zone = Rule Ignored.

Forwarding URL Page Rule behavior with Workers

Forwarding URL Page Rule behavior: Client to Worker = Rule Ignored. Worker to Same Zone = Rule Respected. Worker to Other Zone = Rule Ignored.

IP Geolocation Header Page Rule behavior with Workers

IP Geolocation Header Page Rule behavior: Client to Worker = Rule Respected. Worker to Same Zone = Rule Respected. Worker to Other Zone = Rule Ignored.

Origin Cache Control Page Rule behavior with Workers

Origin Cache Control Page Rule behavior: Client to Worker = Rule Respected. Worker to Same Zone = Rule Respected. Worker to Other Zone = Rule Ignored.

Rocket Loader Page Rule behavior with Workers

Rocket Loader Page Rule behavior: Client to Worker = Rule Ignored. Worker to Same Zone = Rule Ignored. Worker to Other Zone = Rule Ignored.

Security Level Page Rule behavior with Workers

Security Level Page Rule behavior: Client to Worker = Rule Respected. Worker to Same Zone = Rule Ignored. Worker to Other Zone = Rule Ignored.

SSL Page Rule behavior with Workers

SSL Page Rule behavior: Client to Worker = Rule Respected. Worker to Same Zone = Rule Respected. Worker to Other Zone = Rule Ignored.

Cloudflare Tunnel purpose

Cloudflare Tunnels enable secure connections between local services and Cloudflare's network without the need for public IP addresses.

Proxy support environment variables

Wrangler respects these environment variables for proxy configuration: https_proxy, HTTPS_PROXY, http_proxy, HTTP_PROXY. The first non-empty variable in the list will be used. If both https_proxy and http_proxy are set, Wrangler uses https_proxy.

Give your agent this brain