Extend media and font cache TTL to 1 year

This commit is contained in:
Jamie Burchell 2021-11-05 15:56:26 +00:00 committed by Léo Colombaro
parent 5f33ffa7d4
commit 4a229657fd
1 changed files with 9 additions and 9 deletions

View File

@ -54,20 +54,20 @@ map $sent_http_content_type $expires {
~*text/markdown 0; ~*text/markdown 0;
# Media files # Media files
~*audio/ 1M; ~*audio/ 1y;
~*image/ 1M; ~*image/ 1y;
~*video/ 1M; ~*video/ 1y;
# WebAssembly # WebAssembly
~*application/wasm 1y; ~*application/wasm 1y;
# Web fonts # Web fonts
~*font/ 1M; ~*font/ 1y;
~*application/vnd.ms-fontobject 1M; ~*application/vnd.ms-fontobject 1y;
~*application/x-font-ttf 1M; ~*application/x-font-ttf 1y;
~*application/x-font-woff 1M; ~*application/x-font-woff 1y;
~*application/font-woff 1M; ~*application/font-woff 1y;
~*application/font-woff2 1M; ~*application/font-woff2 1y;
# Other # Other
~*text/x-cross-domain-policy 1w; ~*text/x-cross-domain-policy 1w;