更新 nginx.conf
This commit is contained in:
parent
901e10a953
commit
8b149bc7b3
@ -27,12 +27,17 @@ http {
|
|||||||
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
expires 600s;
|
expires off;
|
||||||
add_header Cache-Control must-revalidate;
|
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||||
root /app/public;
|
root /app/public;
|
||||||
index index.html;
|
index index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /assets {
|
||||||
|
expires 7d;
|
||||||
|
add_header Cache-Control "public";
|
||||||
|
}
|
||||||
|
|
||||||
location /api/v1/site/icon/ {
|
location /api/v1/site/icon/ {
|
||||||
# 站点图标缓存
|
# 站点图标缓存
|
||||||
proxy_cache my_cache;
|
proxy_cache my_cache;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user