nginx奇怪问题 - 停止服务器,客户端依然可以请求到接口并且获取到数据
文章目录
nginx配置,nginx.conf配置如下内容。
`
location ~ .*.(gif|jpg|jpeg|png|bmp|swf|js|css)$ {
#禁止缓存,每次都从服务器请求
add_header Cache-Control no-store;
}
`
nginx配置,nginx.conf配置如下内容。
`
location ~ .*.(gif|jpg|jpeg|png|bmp|swf|js|css)$ {
#禁止缓存,每次都从服务器请求
add_header Cache-Control no-store;
}
`
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论