diff --git a/web/conf/nginx.conf b/web/conf/nginx.conf index 541a47e..f5ee835 100644 --- a/web/conf/nginx.conf +++ b/web/conf/nginx.conf @@ -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 / {