tell clients not to cache their outer html

pull/1/head
ansuz 4 years ago
parent fbc9edd795
commit 8c980df660

@ -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;

Loading…
Cancel
Save