fix: use correct cache control directivbe
This commit is contained in:
parent
ac90ac07fd
commit
ac1bf0d245
@ -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 }
|
||||
}
|
@ -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',
|
||||
}
|
||||
})
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user