Skip to content

Commit

Permalink
Extend media and font cache TTL to 1 year
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Burchell authored and LeoColomb committed Nov 14, 2021
1 parent 5f33ffa commit 4a22965
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions h5bp/web_performance/cache_expiration.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4a22965

Please sign in to comment.