![]() |
1
eason1874 2021-10-26 21:15:53 +08:00
http://nginx.org/en/docs/http/ngx_http_proxy_module.html
proxy_cache off; proxy_buffering off; proxy_request_buffering off; proxy_http_version 1.1; |
2
zjlletian 2021-10-27 11:44:45 +08:00
台湾的?? 大陆这边一般都叫缓存。。。
快取,有点像 cache 的谐音,也有快速读取的意思,第一次见这个说法。 |
![]() |
4
darkengine 2021-10-27 13:14:14 +08:00
location ~ .*\.(htm|html)$
{ expires -1; } 我们的服务器是这么配的,不缓存所有 html 文件 |
5
superrichman 2021-10-27 14:21:25 +08:00
add_header Cache-Control "no-cache, no-store";
其实还有其它参数能加,不过这两个够我用的 |
6
saytesnake 2021-10-27 14:48:10 +08:00
如果只是静态前端,只需要楼上说的,
add_header Cache-Control "no-cache, no-store"; 即可,代理缓存应该不用关。 |