gpt4 book ai didi

facebook - 重定向并保留我的图标

转载 作者:行者123 更新时间:2023-11-30 05:27:46 25 4
gpt4 key购买 nike

我想知道当你点击 facebook 上的链接时,facebook redirects 是如何保持它的 favicon 的,它的打开的新标签带有 FB favicon

我想知道这是怎么实现的

它不是 iframe 所以我怎么能这样做

我应该从哪里开始?虽然重定向有一个 URL 叫做 maybe it does everything

问候

最佳答案

您使用的是谷歌浏览器吗?我很确定你指的是一个已知的错误。参见 this bug合并到this bug .

What steps will reproduce the problem?

  1. Visit site with /favicon.ico (e.g. facebook.com)
  2. Receive a redirect from this domain to a new domain without a /favicon.ico
  3. The favicon for the new url is inherited from the last domain.

What is the expected result?

Favicon is blank.

What happens instead?

Favicon is inherited from last domain.

Other information:

I discovered this as facebook.com does not link directly to external sites, but logs the url then redirects to it. I reproduced the issue on localhost using the 'redirect' statement in the ruby web-framework 'Sinatra'.

关于facebook - 重定向并保留我的图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8935205/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com