From 5a175a8a81f9655153fd32c4d29b116424960a8c Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 19 Oct 2023 13:13:29 +0200 Subject: [PATCH] include opts in hash too --- src/runtime/cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/cache.ts b/src/runtime/cache.ts index b17ae4361c..3d59bce591 100644 --- a/src/runtime/cache.ts +++ b/src/runtime/cache.ts @@ -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]), }; const _cachedHandler = cachedFunction>(