From fcdcb61fcf1a1d8e53aed8d6d3d7a3d9f7046994 Mon Sep 17 00:00:00 2001 From: Face <69168154+face-hh@users.noreply.github.com> Date: Sat, 28 Jun 2025 18:05:07 +0300 Subject: [PATCH] fix proxy cache invalidation --- website/src/hooks.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/hooks.server.ts b/website/src/hooks.server.ts index 8a37675..e7b4831 100644 --- a/website/src/hooks.server.ts +++ b/website/src/hooks.server.ts @@ -179,7 +179,7 @@ export const handle: Handle = async ({ event, resolve }) => { event.locals.userSession = userData; - if (event.url.pathname.startsWith('/api/')) { + if (event.url.pathname.startsWith('/api/') && !event.url.pathname.startsWith('/api/proxy/')) { const response = await svelteKitHandler({ event, resolve, auth }); response.headers.set('Cache-Control', 'no-store, no-cache, must-revalidate, private');