In the event of a missing asset in KV (but where it is found in the manifest), we should probably just do default 404 behavior. Right now, we'll return a 500.
https://github.com/cloudflare/kv-asset-handler/blob/821dc0c45a9d750c4922c8bbece724df79dfa9b5/src/index.ts#L271 throws the error.
|
return new Response(e.message || e.toString(), { status: 500 }) |
will then return a 500 response.
In the event of a missing asset in KV (but where it is found in the manifest), we should probably just do default 404 behavior. Right now, we'll return a 500.
https://github.com/cloudflare/kv-asset-handler/blob/821dc0c45a9d750c4922c8bbece724df79dfa9b5/src/index.ts#L271 throws the error.
worker-sites-template/workers-site/index.js
Line 58 in dd042da