This commit is contained in:
colben 2023-08-19 23:22:59 +08:00
parent 9b3218c658
commit ac9799fab5

View File

@ -97,6 +97,15 @@ location ^~ /share/ {
}
```
## 禁止浏览器缓存
```nginx
loaction ^~ /xxxxweb/ {
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
expires off;
etag off;
}
```
## 反向代理负载均衡
- /etc/nginx/conf.d/upstream.conf
```nginx