客户端缓存和服务器缓存有什么区别 [英] What is the difference between client cache and server cache

查看:71
本文介绍了客户端缓存和服务器缓存有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在求职面试中有人问我这个问题,但是由于我不熟悉asp.net,所以不知道正确的答案.

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

感谢您的帮助.

谢谢.

推荐答案

在客户端上没什么可说的;除非服务器明确表示不这样做,否则客户端浏览器默认情况下会缓存资源.

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

相反,除非明确配置,否则服务器不会缓存资源.在不同阶段,我们有多种缓存方式.最常见的方法是对单个实例使用 Runtime.Caching ,对Web Farm和Web Garden使用 Redis Cache .在Web窗体中,有时我们将 ViewState SessionState 缓存/存储在SQL Server或状态服务器中,以提高速度

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.

这篇关于客户端缓存和服务器缓存有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆