FIX: stop sending a blank /favicon.ico

instead have nginx ship a 404 for it.
This commit is contained in:
Sam Saffron 2015-11-17 19:34:05 +11:00
parent aeccc030d6
commit 81bdd2328d
2 changed files with 7 additions and 0 deletions

View File

@ -80,6 +80,13 @@ server {
internal;
}
# return a cheap 404 for favicon cause lots of browsers like asking for it
# view source and old browsers, this bypasses the rails stack at the expense of
# having an ugly 404 page
location /favicon.ico {
return 404;
}
location / {
root $public;
add_header ETag "";

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 B