Skip to content

Commit

Permalink
perf(ssr): Increasing default fetchAndCache TTL to 1 hour
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Aug 31, 2024
1 parent c878448 commit 5813deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ssr/src/lib/util/ssr-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const runtimeFetchings: Record<string, Promise<Response> | undefined> = {};
export const fetchAndCache = async (
url: URL | string,
{
maxAge = 1800,
maxAge = 60 * 60,
canUseStale = true,
cacheKey,
timeout = 4000,
Expand Down

0 comments on commit 5813deb

Please sign in to comment.