DEV Community

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

Collapse
code913 profile image
code913

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

Collapse
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).