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

5.2. 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 Section 5.2.3 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.

5.2.1. Request Cache-Control Directives

5.2.1.1. max-age

   Argument syntax:

      delta-seconds (see Section 1.2.1)

   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.

最新文章

  1. C# 索引器,实现IEnumerable接口的GetEnumerator()方法
  2. XMPP iOS客户端实现二:xcode项目配置
  3. 关于Extjs MVC模式上传文件的简单方式
  4. NGUI 便捷的显示与隐藏界面
  5. [转] The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing
  6. DirectX 基础学习系列6 字体
  7. (Theano 1)Theano自述文件
  8. adb取出安装在手机中的apk
  9. 玩转 SSH(一):使用 Struts 搭建简单站点
  10. 通过VM虚拟机安装Ubuntu server部署flask项目
  11. Network in Network
  12. quartz 使用问题,小坑
  13. 【转载】http proxy原理
  14. Android新特性介绍,ConstraintLayout完全解析
  15. 线程锁Lock
  16. Ural 2045. Richness of words 打表找规律
  17. org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException
  18. for循环输出菱形
  19. android语音识别方法
  20. 41、用Python实现一个二分查找的函数

热门文章

  1. Android学习总结(5)——9个非常有用的Andorid 程序片段
  2. chromeDriver下载地址
  3. Spring Boot静态资源处理
  4. [TS-A1488][2013中国国家集训队第二次作业]魔法波[高斯消元]
  5. PatentTips - Substitute virtualized-memory page tables
  6. Javascript控制回车键进行表单(form)提交(转)
  7. android測试工具MonkeyRunner--google官网翻译
  8. 人见人爱A+B(杭电2033)
  9. 将byte[]转为各种进制的字符串
  10. JS中split使用方法和数组中元素的删除