Advertisement

HTTP头的Expires与Cache-control

阅读量:

《HTTP头中的Expire字段与缓存控制机制》](http://www.cnblogs.com/yuyii/archive/2008/10/16/1312238.html)

1.概念

Cache-control 负责管理HTTP缓存机制(虽然在HTTP/1.0标准中并未完全实现相关功能,但已实现了基于Pragma的no-cache策略)

数据包中的格式:

Cache-Control: cache-directive

cache-directive可以为以下:

request时用到:

复制代码

response时用到:

复制代码
复制代码
    **Expires** 必须是GMT格式
复制代码
复制代码
复制代码
复制代码
复制代码
    [Apache Module mod_expires](http://httpd.apache.org/docs/2.2/mod/mod_expires.html "Apache Module mod_expires")
复制代码
复制代码
      
      
    [HTTP RFC2616 HeaderField](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.32)  
    [HTTP协议基础](http://www.cnpaf.net/class/HTTP/0532918532641885.html)

全部评论 (0)

还没有任何评论哟~