From d51e7003f69be704d57b1c61cf5a61f5d03eb59b Mon Sep 17 00:00:00 2001 From: James Wragg Date: Thu, 11 Jan 2024 23:13:12 +0000 Subject: [PATCH] fix: missing maxAge default (#197) --- src/storage/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/http.ts b/src/storage/http.ts index e1845bc..35e0551 100644 --- a/src/storage/http.ts +++ b/src/storage/http.ts @@ -19,7 +19,7 @@ export function ipxHttpStorage(_options: HTTPStorageOptions = {}): IPXStorage { let _domains = _options.domains || getEnv("IPX_HTTP_DOMAINS") || []; const defaultMaxAge = - _options.maxAge || getEnv("IPX_HTTP_MAX_AGE"); + _options.maxAge || getEnv("IPX_HTTP_MAX_AGE") || 300; const fetchOptions = _options.fetchOptions || getEnv("IPX_HTTP_FETCH_OPTIONS") || {};