fix client cache so it works in combination with reverse proxy and examples update

This commit is contained in:
bunkerity
2021-04-27 15:31:56 +02:00
parent 813607fbc3
commit 6521d7a27a
28 changed files with 8 additions and 88 deletions

View File

@@ -1,4 +1,6 @@
location ~* \.(%CLIENT_CACHE_EXTENSIONS%)$ {
etag %CLIENT_CACHE_ETAG%;
add_header Cache-Control "%CLIENT_CACHE_CONTROL%";
etag %CLIENT_CACHE_ETAG%;
set $cache "";
if ($uri ~* \.(%CLIENT_CACHE_EXTENSIONS%)$) {
set $cache "%CLIENT_CACHE_CONTROL%";
}
add_header Cache-Control $cache;