mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: stop sending a blank /favicon.ico
instead have nginx ship a 404 for it.
This commit is contained in:
@@ -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 "";
|
||||
|
||||
Reference in New Issue
Block a user