tell clients not to cache their outer html

This commit is contained in:
ansuz 2020-10-21 13:11:29 +05:30
parent fbc9edd795
commit 8c980df660

View file

@ -71,6 +71,9 @@ server {
if ($args ~ ver=) {
set $cacheControl max-age=31536000;
}
if ($uri ~ ^/.*(\/|\.html)$) {
set $cacheControl no-cache;
}
# Will not set any header if it is emptystring
add_header Cache-Control $cacheControl;