mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-08-28 20:06:05 +00:00
fix: Prevent caching of web root (#1375)
This commit is contained in:
@@ -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