Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions h5bp/web_performance/cache_expiration.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ map $sent_http_content_type $expires {
~*application/rdf\+xml 1h;
~*application/rss\+xml 1h;

~*application/json 0;
~*application/ld\+json 0;
~*application/schema\+json 0;
~*application/geo\+json 0;
~*application/xml 0;
~*text/calendar 0;
~*text/xml 0;
~*application/json epoch;
~*application/ld\+json epoch;
~*application/schema\+json epoch;
~*application/geo\+json epoch;
~*application/xml epoch;
~*text/calendar epoch;
~*text/xml epoch;

# Favicon (cannot be renamed!) and cursor images
~*image/vnd.microsoft.icon 1w;
~*image/x-icon 1w;

# HTML
~*text/html 0;
~*text/html epoch;

# JavaScript
~*application/javascript 1y;
Expand All @@ -47,11 +47,11 @@ map $sent_http_content_type $expires {

# Manifest files
~*application/manifest\+json 1w;
~*application/x-web-app-manifest\+json 0;
~*text/cache-manifest 0;
~*application/x-web-app-manifest\+json epoch;
~*text/cache-manifest epoch;

# Markdown
~*text/markdown 0;
~*text/markdown epoch;

# Media files
~*audio/ 1y;
Expand Down