Menu
Back to Discussions

client-side vs server-side caching, which is better

Zulma Espinoza
Zulma Espinoza
·2366 views
hey everyone, ive been thinking about caching lately and wanted to get the community's take. Were building out a new feature that involves frequently accessed, relatively static data. My initial thought is to implement client-side caching using something like ETags or Cache-Control headers. But, Im also considering server-side caching with Redis or Memcached for faster responses and reduced load on the database. What are your go-to strategies for caching this type of data? Are there specific scenarios where one approach clearly shines over the other? Curious about your experiences and any pitfalls to watch out for.
27 comments

Comments

Loading comments...