diff --git a/src/runtime/cache.ts b/src/runtime/cache.ts index b331ff750b..6b0e400868 100644 --- a/src/runtime/cache.ts +++ b/src/runtime/cache.ts @@ -51,7 +51,7 @@ export function defineCachedFunction( // Normalize cache params const group = opts.group || "nitro/functions"; const name = opts.name || fn.name || "_"; - const integrity = hash([opts.integrity, fn, opts]); + const integrity = opts.integrity || hash([fn, opts]); const validate = opts.validate || (() => true); async function get(