Skip to content

Commit

Permalink
register cache differently?
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed May 10, 2024
1 parent b1915c3 commit 24f32e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generation/deploy/cache-platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export async function platformCache(
name = 'http-policy-cache',
): Promise<Cache> {

const nativeCache = await globalThis.caches.open(name);
const nativeCache = await caches.open(name);

return new Cache({

Expand Down

1 comment on commit 24f32e5

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 24f32e5 May 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

UNCAUGHT_EXCEPTION

ReferenceError: caches is not defined
    at platformCache (https://raw.githubusercontent.com/cloudydeno/deno-aws_api/24f32e54a9756eb7fa7e686ac670dda0fac5346a/generation/deploy/cache-platform.ts:3:23)
    at https://raw.githubusercontent.com/cloudydeno/deno-aws_api/24f32e54a9756eb7fa7e686ac670dda0fac5346a/generation/deploy/cache.ts:12:9

Please sign in to comment.