fix: never cache anything

This commit is contained in:
dusk 2024-08-24 15:50:02 +03:00
parent 5ae9147c11
commit aee545c963
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw

View File

@ -3,6 +3,7 @@ export const ssr = true;
export const prerender = false;
export const trailingSlash = 'always';
export async function load({ url }) {
export async function load({ url, setHeaders }) {
setHeaders({'Cache-Control': 'no-cache'})
return { route: url.pathname }
}