Skip to content

Commit

Permalink
include opts in hash too
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 19, 2023
1 parent fb9208c commit 5a175a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export function defineCachedEventHandler<
return true;
},
group: opts.group || "nitro/handlers",
integrity: opts.integrity || hash(handler),
integrity: opts.integrity || hash([handler, opts]),

Check warning on line 261 in src/runtime/cache.ts

View check run for this annotation

Codecov / codecov/patch

src/runtime/cache.ts#L261

Added line #L261 was not covered by tests
};

const _cachedHandler = cachedFunction<ResponseCacheEntry<Response>>(
Expand Down

0 comments on commit 5a175a8

Please sign in to comment.