fix proxy cache invalidation
This commit is contained in:
parent
9aaecdeb5b
commit
fcdcb61fcf
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Reference in a new issue