fix proxy cache invalidation

This commit is contained in:
Face 2025-06-28 18:05:07 +03:00
parent 9aaecdeb5b
commit fcdcb61fcf

View file

@ -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');