DEV Community

Discussion on: What's So Great About Next.js?

code913 profile image

Is it possible to use SSR but cache responses for each user? Example: A feed page like that should be personalized for the user but should only update every 10 seconds.

jaredcwhite profile image
Jared White

Seems like a good opportunity to use Redis. You'd cache the output right before sending it over the wire…subsequent requests would just grab the cached data (and you could set the cache expiry date).