Page MenuHomePhabricator

Route hard-coded "/favicon.ico" requests to a favicon resource
ClosedPublic

Authored by epriestley on May 1 2020, 12:16 PM.
Tags
None
Referenced Files
F19060804: D21195.diff
Sat, Nov 29, 10:20 AM
F19016658: D21195.id.diff
Sun, Nov 23, 4:56 AM
F19014163: D21195.diff
Sat, Nov 22, 6:54 PM
F18877434: D21195.id50478.diff
Thu, Nov 6, 8:28 AM
F18863119: D21195.diff
Sun, Nov 2, 10:01 PM
F18811769: D21195.id.diff
Oct 20 2025, 4:49 AM
F18809978: D21195.diff
Oct 19 2025, 6:30 PM
F18798388: D21195.id50478.diff
Oct 17 2025, 6:26 AM
Subscribers
None

Details

Summary

See PHI1719. User agents making hard-coded requests to "/favicon.ico" currently 404. This is a mild source of log noise, and we can reasonably route this request.

Limitations:

  • This only routes the "PlatformSite". Other sites (custom Phame blogs, third-party sites, Phurl redirectors) won't route here for now.
  • This returns a "Location:" redirect to the correct resource rather than icon data directly. This produces the right icon with the right caching behavior, and returning icon data directly is difficult in the general case. However, it won't perform/cache as well as a direct response would.
Test Plan
  • Visted /favicon.ico.
  • Before: 404.
  • After: redirect to favicon.

Diff Detail

Repository
rP Phabricator
Branch
favicon1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24293
Build 33464: Run Core Tests
Build 33463: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.May 1 2020, 12:23 PM
This revision was automatically updated to reflect the committed changes.