fix: use correct cache control directivbe

This commit is contained in:
dusk 2024-09-21 20:41:03 +03:00
parent ac90ac07fd
commit ac1bf0d245
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -7,7 +7,7 @@ export const GET = async ({ }) => {
return new Response(render(_allPosts), {
headers: {
'content-type': 'application/xml',
'cache-control': 'no-cache',
'cache-control': 'no-store',
}
})
};