mirror of https://github.com/xwiki-labs/cryptpad
tell clients not to cache their outer html
This commit is contained in:
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…
Reference in New Issue