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.
This commit is contained in:
parent
f7c9c61de7
commit
508738ea7f
|
@ -1 +1,3 @@
|
|||
### HEAD
|
||||
|
||||
* Add configurations for cursor images (`.cur`).
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue