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 · all subjects

configuration/placement

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

Smart Placement with run_worker_first=true

When using Smart Placement with run_worker_first=true to run Worker code ahead of assets, all requests must first travel to your Smart-Placed Worker, which may increase latency for asset requests. Use this configuration when you need to integrate with backend services, authenticate requests before serving assets, or modify assets before serving them. If you want some assets served quickly while others are served behind a smart-placed Worker, consider splitting your app into multiple Workers using service bindings.

Smart Placement with run_worker_first=false

Enabling Smart Placement with run_worker_first=false (or not specifying it) lets you serve assets from as close as possible to users while moving Worker logic to run most efficiently, such as near a database. Use this configuration when prioritizing fast asset delivery. This does not impact the default routing behavior.

Smart Placement limitation with run_worker_first

When using Smart Placement in combination with assets.run_worker_first, placement decisions may not be optimized correctly because the entire Worker script is placed as a single unit. This does not accurately reflect the desired split in behavior between edge-first and smart-placed compute for your application. This is a known limitation currently being worked on.

Give your agent this brain