Skip to content

Serve favicon - #47

Open
MikeLund wants to merge 1 commit into
OlafvdSpek:masterfrom
MikeLund:master
Open

Serve favicon#47
MikeLund wants to merge 1 commit into
OlafvdSpek:masterfrom
MikeLund:master

Conversation

@MikeLund

@MikeLund MikeLund commented Apr 5, 2017

Copy link
Copy Markdown

A quick change for serving a favicon from the tracker. Maybe not the most efficient code (and I know headers aren't proper -- didn't bother to differentiate between favicon.ico and favicon.png requests), but hopefully this is useful for someone else.

Why? If someone is using redirect_url, there are many unneeded 302s without this change. Most GUI torrent clients now of days query for favicon at the base URL (eg http://tracker.example.com/favicon.png), instead of http://example.com/favicon.png. Additionally, many clients won't then try the favicon on the base domain after the 302, so any type of caching on their client for the favicon also fails.

So let's just serve the favicon from tracker, what could go wrong ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants