-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Default favicon.ico in Loopback #1827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@pwwolf Thanks for your suggestion! We will see if there is any improvement to update the icon change faster. As a workaround you could probably load your app after setting the favicon. |
Hey @superkhau @ritch @raymondfeng @bajtos, from the description above, some improvement regarding favicon might be need:) User has to clear cache every time to see the favicon change. The customized favicon(set from middleware.json) has the same problem. Any ideas about updating the favicon faster? |
IIUC, the favicon is cached by the browser - I don't think we can do much here. See e.g this thread discussing the topic in Chrome context: https://productforums.google.com/forum/#!topic/chrome/zXlEW0ZFErY The only solution I can think of is to disable the default StrongLoop favicon as suggested @pwwolf:
I don't have a strong opinion which way is better. @ritch @raymondfeng do you happen to remember why we added the default StrongLoop-branded favicon? |
My vote goes to no icon to prevent issues like this from coming up again in the future. |
+1 for no icon |
I am proposing to keep |
@zanemcca @pwwolf would you like to contribute this change yourself? Here is the place where to start looking: https://github.com/strongloop/loopback-workspace/blob/a388532346ec2a9b498d3ff6a97b6248b3e613a7/templates/components/api-server/template/server/middleware.json#L3 |
I just realized one negative consequence of removing the favicon middleware. Since loopback records 404s to the console, there are errors with stack traces unavoidably shown in the console when the browser attempts to request the now-missing favicon. Even though the error is benign, I'd rather deal with the default favicon than have to see the error messages.
|
This is a minor gripe, but I noticed that Loopback projects contain the same favicon.ico as strongloop.com. This is frustrating because in a browser with a lot of tabs, I can't distinguish which tab is my local server vs strongloop.com, where I usually have doc opened.
Personally I prefer not to even have a favicon set by default. The browser caches the favicon to localhost:3000, and then any node app I work on (loopback or not) contains the Strongloop icon until I forcibly delete the cache.
The text was updated successfully, but these errors were encountered: