-
|
Hey! 👋 I'm stumped why <!-- index.svelte -->
<script context="module">
export async function load() {
return {
cache: { maxage: 60 } // ✅
}
}
</script>// index.js
export async function get() {
return {
headers: { 'Cache-Control': 'max-age=60' } // ❌
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
matiadev
Apr 26, 2022
Replies: 1 comment 2 replies
-
|
From what it seems page endpoints add the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
matiadev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From what it seems page endpoints add the
Cache-Controlheader to__data.jsonwhich makes sense but I assumed it would also work for the document. Doesn't that mean the user won't get the cached page when they reload?