Replies: 1 comment
-
Turns out AWS doesn't support
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to replicate something Tanner said here suggesting how to do Next.js style stale-while-revalidate ISR with cache control headers:
The TanStack blog seems to implement this approach, but as of right now, I still couldn't quite replicate this.
getData
here gets called for every page request.(see also sample repo: https://github.com/jschuur/tanstack-start-isr-sample or live URL)
I can see the correct headers being set at the root URL level in the network tab...
...but not for the index.js request:
So I'm not setting headers in all the right places because they don't get passed through?
FWIW, I'm using SST to deploy this to AWS, so not sure if this needs extra config.
Have updated this thread with the latest details after Tanner responded on Discord, but I still can't get this to work.
Beta Was this translation helpful? Give feedback.
All reactions