From 3eb9115f243737e477e3cd7e2ed7d68aaa8f5265 Mon Sep 17 00:00:00 2001 From: mauro-balades Date: Tue, 27 Aug 2024 16:55:23 +0200 Subject: [PATCH] chore: Update CACHE_OPTIONS to include next revalidation settings --- src/lib/themes.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/themes.ts b/src/lib/themes.ts index 746b123..ebf6f5c 100644 --- a/src/lib/themes.ts +++ b/src/lib/themes.ts @@ -14,7 +14,9 @@ export interface ZenTheme { } const THEME_API = "https://zen-browser.github.io/theme-store/themes.json"; -const CACHE_OPTIONS = { cache: "no-cache" } as RequestInit; +const CACHE_OPTIONS = { next: { + revalidate: 60, +} } as RequestInit; export async function getAllThemes() { // Fetch from the API