We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b742f0e commit 6ef4d15Copy full SHA for 6ef4d15
packages/cloudflare/src/cli/templates/worker.ts
@@ -40,7 +40,7 @@ export default {
40
return new Response("Not Found!", { status: 404 });
41
}
42
const imageUrl = m.groups!.url!;
43
- if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
+ if (imageUrl.match(/^https?:\/\//)) {
44
return fetch(imageUrl, { cf: { cacheEverything: true } });
45
46
return env.ASSETS.fetch(new URL(`/${imageUrl}`, url));
0 commit comments