Skip to content

Commit 9cfe963

Browse files
Update src/content/docs/workers/static-assets/index.mdx
Co-authored-by: Greg Brimble <[email protected]>
1 parent bcae885 commit 9cfe963

File tree

1 file changed

+1
-1
lines changed
  • src/content/docs/workers/static-assets

1 file changed

+1
-1
lines changed

src/content/docs/workers/static-assets/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default {
8383

8484
### Routing behavior
8585

86-
By default, if a requested URL matches a file in the static assets directory, that file will always be served — without running Worker code. If no matching asset is found and a Worker is configured, the request will be processed by the Worker instead. The Worker can choose to pass the request to the asset binding (through `env.ASSETS.fetch()`). If no worker is set up, a `404 Not Found` response is returned.
86+
By default, if a requested URL matches a file in the static assets directory, that file will be served — without invoking Worker code. If no matching asset is found and a Worker script is present, the request will be processed by the Worker. The Worker can return a response or choose to defer again to static assets by using the [assets binding](/workers/static-assets/binding/) (e.g. `env.ASSETS.fetch(request)`). If no Worker script is present, a `404 Not Found` response is returned.
8787

8888
The default behavior when neither an asset nor a Worker is found can be changed by setting the [`not_found_handling` option under `assets`](/workers/wrangler/configuration/#assets) in your Wrangler configuration:
8989

0 commit comments

Comments
 (0)