mirror of https://github.com/xwiki-labs/cryptpad
handle more cases for the cache-control header in NGINX
This commit is contained in:
parent
20a1d03006
commit
4d022a2247
|
@ -87,7 +87,7 @@ server {
|
|||
if ($args ~ ver=) {
|
||||
set $cacheControl max-age=31536000;
|
||||
}
|
||||
if ($uri ~ ^/.*(\/|\.html)$) {
|
||||
if ($uri ~ ^(\/|.*\/|.*\.html)$) {
|
||||
set $cacheControl no-cache;
|
||||
}
|
||||
# Will not set any header if it is emptystring
|
||||
|
|
Loading…
Reference in New Issue