mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 00:40:07 +01:00
fix: Prevent caching of web root (#1375)
This commit is contained in:
1 parent
03993aa773
commit
d854ae811c
1 file changed
+8
@@ -25,10 +25,18 @@ server {
|
||||
|
||||
set $cache_control "no-cache";
|
||||
|
||||
if ($uri = /) {
|
||||
set $cache_control "no-store";
|
||||
}
|
||||
|
||||
if ($uri = /msg.html) {
|
||||
set $cache_control "no-store";
|
||||
}
|
||||
|
||||
if ($uri = /index.html) {
|
||||
set $cache_control "no-store";
|
||||
}
|
||||
|
||||
add_header Cache-Control $cache_control always;
|
||||
|
||||
location / {
|
||||
|
||||
Reference in new issue
Block a user