Update to 2022-02-09 14:00

This commit is contained in:
Daniel Berteaud
2022-02-09 14:00:12 +01:00
parent 8f15d01cbe
commit 71a429c7a2
5 changed files with 26 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
map $upstream_http_content_type $is_cacheable {
map $sent_http_content_type $is_client_cacheable {
default 0;
~image/ 1;
~audio/ 1;
@@ -14,3 +14,12 @@ map $upstream_http_content_type $is_cacheable {
application/vnd.ms-fontobject 1;
application/vnd.ms-opentype 1;
}
map $request_uri $is_proxy_cacheable {
default 0;
~*\.(png|jpe?g|bmp|gif|webp)$ 1;
~*\.(js|css|txt)$ 1;
~*\.(pdf)$ 1;
~*\.(ttf|ott)$ 1;
~*\.(mp3|mp4|avi|mpe?g|mov|flv)$ 1;
}