diff --git a/packages/core/src/router.ts b/packages/core/src/router.ts index 2f8cb605d..209639104 100644 --- a/packages/core/src/router.ts +++ b/packages/core/src/router.ts @@ -187,7 +187,7 @@ export class Router { return prefetchedRequests.findInFlight(this.getPrefetchParams(href, options)) } - public prefetch(href: string | URL, options: VisitOptions = {}, { cacheFor = 30 }: PrefetchOptions) { + public prefetch(href: string | URL, options: VisitOptions = {}, { cacheFor = 30_000 }: PrefetchOptions) { if (options.method !== 'get') { throw new Error('Prefetch requests must use the GET method') }