From 508738ea7f07caf562b97d824394283b955a9b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20S=2E=20Jakie=C5=82a?= Date: Fri, 4 Oct 2013 11:19:01 +0200 Subject: [PATCH] Add configs for cursor images (`.cur`) Apply all the configs used for `.ico` files to `.cur` files as the two image formats are almost identical. The MIME type for the `.cur` file doesn't matter as browsers seem to sniff the content. However, `image/x-icon` is specified because it's the one usually used for `.ico` file and because it's shorther then the other frequentlly used one (`image/vnd.microsoft.icon`), making the header size smaller. See also: * http://en.wikipedia.org/wiki/ICO_%28file_format%29 * http://msdn.microsoft.com/en-us/library/windows/desktop/ms648007%28v=vs.85%29.aspx Close: #5. --- CHANGELOG.md | 2 ++ conf/expires.conf | 2 +- mime.types | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84908d6..af6e818 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1,3 @@ ### HEAD + +* Add configurations for cursor images (`.cur`). diff --git a/conf/expires.conf b/conf/expires.conf index 91db5c9..664b1ec 100644 --- a/conf/expires.conf +++ b/conf/expires.conf @@ -21,7 +21,7 @@ location ~* \.(?:rss|atom)$ { } # Media: images, icons, video, audio, HTC -location ~* \.(?:jpg|jpeg|gif|png|ico|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { +location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { expires 1M; access_log off; add_header Cache-Control "public"; diff --git a/mime.types b/mime.types index 2496f81..f0d2499 100644 --- a/mime.types +++ b/mime.types @@ -16,7 +16,7 @@ types { image/tiff tif tiff; image/vnd.wap.wbmp wbmp; image/webp webp; - image/x-icon ico; + image/x-icon ico cur; image/x-jng jng; # JavaScript