cookya
cookya

Reputation: 3297

What is the difference between client cache and server cache

I was asked this question in a job interview, but since I'm new to asp.net didn't know the right answer.

I'd appreciate your help.

Thanks.

Upvotes: 1

Views: 857

Answers (1)

Win
Win

Reputation: 62260

Not much to say on client-side; client browser caches resources by default, unless server explicitly says not to.

In contrast, server doesn't not cache resources unless you explicitly configure it. We have multiple ways of caching at different stages. Most common method is Runtime.Caching for single instance, and Redis Cache for Web Farm and Web Garden. In Web Form, we sometimes cache/store ViewState and SessionState in SQL Server or State Server to improve the speed.

Too many things to answer for server caching depending on the type of interview - junior or senior level.

Upvotes: 3

Related Questions