Caching API responses for a headless CMS #12847
Unanswered
yoniweisbrodlemonade
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We need to pull content at run-time from a headless CMS (data that could change at any point), and I'm wondering about caching the API responses on Redis and invalidating using TTL to improve response time.
Is this something that I can do in
getInitialProps
orgetServerSideProps
? Or if I wanted to interact with a Redis server, would it be better to do this on our custom server? Thanks :)Beta Was this translation helpful? Give feedback.
All reactions