http-equiv=“刷新"吗?保留引用信息和元数据? [英] Does http-equiv="refresh" keep referrer info and metadata?

查看:30
本文介绍了http-equiv=“刷新"吗?保留引用信息和元数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我设置一个这样的页面:

If I set up a page like this:

<html><head><meta http-equiv="refresh" content="0;url=http://internic.net/"></head><body></body></html>

执行重定向时浏览器是否会发送引用信息和其他元数据?

Will the browser send referrer info and other metadata when the redirection is performed?

推荐答案

在这里测试中,Firefox 和 IE 不会,但 Chrome 发送引用者(尽管这是不一致),无论它是否进入同一个域.

In testing here, Firefox and IE do not but Chrome does send the referrer (though this is inconsistent as well), regardless of whether it's going to the same domain or not.

鉴于我找不到任何说明应该是什么标准行为的规范,而且 W3C 通常不鼓励 META 重定向,我不确定您是否可以依赖这种一致性.

Seeing as I can't find any spec stating what should be the standard behavior, and W3C in general discourages a META redirect, I'm not sure you can ever depend on this being consistent.

这篇关于http-equiv=“刷新"吗?保留引用信息和元数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆