Web Caching

  • web caching 是指将网络文件如html或图片保存在客户端以及服务器端中间的代理服务器上(proxy server)
  • ISP以及一些机构(大学,企业等)一般会有这样的服务器
运作方式
  • C --> PS
  • 如果文件存在 C <-- PS
  • 如果文件不存在 PS --> S, PS <-- S, C <-- PS
作用
  • 降低客户请求数据的延迟
  • 减少机构对外网络部分的拥堵,因为缓存的文件无须访问外部网络
  • 降低整个网络的拥堵
Content delivery network(CDN)
  • 区域化的web caching server nerwork
  • 腾讯云CDN
  • Google CDN
Conditional get
  • 为保障客户能得到最新的网页文件,PS会发送conditional get请求查询网页是否改变
GET /fruit/kiwi.gif HTTP/1.1
Host: www.exotiquecuisine.com
If-modified-since: Wed, 7 Sep 2011 09:23:24
HTTP/1.1 304 Not Modified
Date: Sat, 15 Oct 2011 15:39:29
Server: Apache/1.3.0 (Unix)
(empty entity body)

你可能感兴趣的:(Web Caching)