mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
disabled cache for static files
This commit is contained in:
@@ -29,6 +29,7 @@ location /login {
|
|||||||
|
|
||||||
location /share {
|
location /share {
|
||||||
root /usr/share/kvmd/web;
|
root /usr/share/kvmd/web;
|
||||||
|
include /etc/kvmd/nginx/loc-nocache.conf;
|
||||||
auth_request off;
|
auth_request off;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,11 +40,13 @@ location /share/css/user.css {
|
|||||||
|
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
alias /usr/share/kvmd/web/favicon.ico;
|
alias /usr/share/kvmd/web/favicon.ico;
|
||||||
|
include /etc/kvmd/nginx/loc-nocache.conf;
|
||||||
auth_request off;
|
auth_request off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /robots.txt {
|
location = /robots.txt {
|
||||||
alias /usr/share/kvmd/web/robots.txt;
|
alias /usr/share/kvmd/web/robots.txt;
|
||||||
|
include /etc/kvmd/nginx/loc-nocache.conf;
|
||||||
auth_request off;
|
auth_request off;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user