Merge pull request #3928 from jamielinux/nginx204

Return 204 instead of 404 for favicon.ico requests
This commit is contained in:
Jeff Atwood 2016-01-30 01:48:22 -08:00
commit 161170aabe

View file

@ -80,11 +80,11 @@ 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
# bypass rails stack with a cheap 204 for favicon.ico requests
location /favicon.ico {
return 404;
return 204;
access_log off;
log_not_found off;
}
location / {