Return 204 instead of 404 for favicon.ico requests
This commit is contained in:
parent
727fd727ea
commit
e8919df110
|
@ -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 / {
|
||||
|
|
Loading…
Reference in New Issue