Extend media and font cache TTL to 1 year
This commit is contained in:
parent
5f33ffa7d4
commit
4a229657fd
|
@ -54,20 +54,20 @@ map $sent_http_content_type $expires {
|
|||
~*text/markdown 0;
|
||||
|
||||
# Media files
|
||||
~*audio/ 1M;
|
||||
~*image/ 1M;
|
||||
~*video/ 1M;
|
||||
~*audio/ 1y;
|
||||
~*image/ 1y;
|
||||
~*video/ 1y;
|
||||
|
||||
# WebAssembly
|
||||
~*application/wasm 1y;
|
||||
|
||||
# Web fonts
|
||||
~*font/ 1M;
|
||||
~*application/vnd.ms-fontobject 1M;
|
||||
~*application/x-font-ttf 1M;
|
||||
~*application/x-font-woff 1M;
|
||||
~*application/font-woff 1M;
|
||||
~*application/font-woff2 1M;
|
||||
~*font/ 1y;
|
||||
~*application/vnd.ms-fontobject 1y;
|
||||
~*application/x-font-ttf 1y;
|
||||
~*application/x-font-woff 1y;
|
||||
~*application/font-woff 1y;
|
||||
~*application/font-woff2 1y;
|
||||
|
||||
# Other
|
||||
~*text/x-cross-domain-policy 1w;
|
||||
|
|
Loading…
Reference in New Issue