Nginx不更新最大年龄
如果我向configuration为caching上游的Nginx代理服务器发出请求,我会得到以下响应头文件: {'content-length': '13200000', 'x-cache-status': 'MISS', 'server': 'nginx/1.9.9', 'connection': 'keep-alive', 'cache-control': 'max-age=45', 'date': 'Fri, 27 Jan 2017 10:57:55 GMT'} 几秒钟后,我再次做同样的请求,我得到以下标题: {'content-length': '13200000', 'x-cache-status': 'HIT', 'server': 'nginx/1.9.9', 'connection': 'keep-alive', 'cache-control': 'max-age=45', 'date': 'Fri, 27 Jan 2017 10:58:18 GMT'} 上游服务器指定max-age头为45秒,第二个响应头是否有更新的max-age头? 这是最大年龄= 45-(请求之间的时间)? 编辑 重现行为的示例configuration: http { include mime.types; default_type application/octet-stream; upstream backend { server localhost:8080; } proxy_cache_path /etc/nginx/wwwroot/cache […]