过期:计算HTTP缓存标头何时过期 源码

上传:president372 浏览: 12 推荐: 0 文件:ZIP 大小:6.95KB 上传时间:2021-02-07 00:00:03 版权申诉
已过期 计算HTTP响应何时从缓存头中过期 expired接受HTTP标头作为参数,并将返回有关资源何时到期的信息。 Cache-Control和Expires标头都存在,则支持Cache-Control优先级( )。 安装 npm install --save expired 用法 const expired = require ( 'expired' ) ; const headers = ` Age: 0 Cache-Control: public, max-age=300 Content-Encoding: gzip Content-Type: application/json;ch
上传资源
用户评论