bunkerweb 1.4.0
This commit is contained in:
4
core/clientcache/confs/http/client-cache.conf
Normal file
4
core/clientcache/confs/http/client-cache.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
map $uri $cache_control {
|
||||
default "";
|
||||
"~\.({{ CLIENT_CACHE_EXTENSIONS }})$" "{{ CLIENT_CACHE_CONTROL }}";
|
||||
}
|
||||
8
core/clientcache/confs/server-http/client-cache.conf
Normal file
8
core/clientcache/confs/server-http/client-cache.conf
Normal file
@@ -0,0 +1,8 @@
|
||||
{% if USE_CLIENT_CACHE == "yes" +%}
|
||||
add_header Cache-Control $cache_control;
|
||||
{% if CLIENT_CACHE_ETAG == "yes" and SERVE_FILES == "yes" and USE_REVERSE_PROXY == "no" +%}
|
||||
etag on;
|
||||
{% else +%}
|
||||
etag off;
|
||||
{% endif +%}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user