mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-08-28 11:56:03 +00:00
fix: Prevent caching of web status (#1370)
This commit is contained in:
+7
-1
@@ -23,7 +23,13 @@ server {
|
||||
gzip_disable "msie6";
|
||||
gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml;
|
||||
|
||||
add_header Cache-Control "no-cache";
|
||||
set $cache_control "no-cache";
|
||||
|
||||
if ($request_uri ~ "^/(?:msg\.html)?(?:\?.*)?$") {
|
||||
set $cache_control "no-store";
|
||||
}
|
||||
|
||||
add_header Cache-Control $cache_control always;
|
||||
|
||||
location / {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user