博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Cache-Control官方文档
阅读量:6825 次
发布时间:2019-06-26

本文共 2208 字,大约阅读时间需要 7 分钟。

https://tools.ietf.org/html/draft-ietf-httpbis-p6-cache-25#page-21

 

. Cache-Control

The "Cache-Control" header field is used to specify directives for   caches along the request/response chain.  Such cache directives are   unidirectional in that the presence of a directive in a request does   not imply that the same directive is to be given in the response.   A cache MUST obey the requirements of the Cache-Control directives   defined in this section.  See  for information about how   Cache-Control directives defined elsewhere are handled.      Note: Some HTTP/1.0 caches might not implement Cache-Control.   A proxy, whether or not it implements a cache, MUST pass cache   directives through in forwarded messages, regardless of their   significance to that application, since the directives might be   applicable to all recipients along the request/response chain.  It is   not possible to target a directive to a specific cache.   Cache directives are identified by a token, to be compared case-   insensitively, and have an optional argument, that can use both token   and quoted-string syntax.  For the directives defined below that   define arguments, recipients ought to accept both forms, even if one   is documented to be preferred.  For any directive not defined by this   specification, a recipient MUST accept both forms.     Cache-Control   = 1#cache-directive     cache-directive = token [ "=" ( token / quoted-string ) ]   For the cache directives defined below, no argument is defined (nor   allowed) unless stated otherwise.

. Request Cache-Control Directives

. max-age
Argument syntax:      delta-seconds (see )   The "max-age" request directive indicates that the client is   unwilling to accept a response whose age is greater than the   specified number of seconds.  Unless the max-stale request directive   is also present, the client is not willing to accept a stale   response.   This directive uses the token form of the argument syntax; e.g.,Fielding, et al.          Expires May 21, 2014                 [Page 21]

Internet-Draft              HTTP/1.1 Caching               November 2013   'max-age=5', not 'max-age="5"'.  A sender SHOULD NOT generate the   quoted-string form.

 

转载地址:http://muykl.baihongyu.com/

你可能感兴趣的文章
搜索引擎的前世今生
查看>>
JSP
查看>>
经典排序算法 - 地精排序Gnome Sort
查看>>
mysql rand函数
查看>>
24种编程语言的Hello World程序
查看>>
Java中main函数参数String args[] 和 String[] args 区别
查看>>
Jarvis Oj Pwn 学习笔记-Tell Me Something
查看>>
【WP7进阶】——XNA游戏精灵的动画
查看>>
cat echo 输入多行文字至文本中
查看>>
puppet FAQ
查看>>
linux 基础命令(1)
查看>>
MySQL学习足迹记录01--SOURCE,SHOW
查看>>
tomcat安装配置
查看>>
Struts2.0+Hibernate2.5+Spring3.0搭建JavaEE项目要用的jar
查看>>
2013互联网公司,年终奖有几何?
查看>>
互联网
查看>>
MySQL load data 权限相关
查看>>
ScriptManager.RegisterStartupScript失效的解决方案
查看>>
vsftpd 添加用户
查看>>
递归方法
查看>>