Return 204 instead of 404 for favicon.ico requests

This commit is contained in:
Jamie Nguyen 2015-12-21 12:13:56 +00:00
parent 727fd727ea
commit e8919df110
1 changed files with 2 additions and 4 deletions

View File

@ -80,11 +80,9 @@ 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;
}
location / {