Facebook调试器:响应206 [英] Facebook debugger : Response 206
问题描述
网址: http://www.pagepilot.co.uk/pp_cftest/
发布到Facebook调试器中时: https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.pagepilot.co .uk%2Fpp_cftest%2F
When posted into facebook debugger: https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.pagepilot.co.uk%2Fpp_cftest%2F
保持返回206部分响应而不是200 OK
Keeps returning a 206 Partial Response Instead of a 200 OK
返回的代码是:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
<title>pp_cftest</title>
<meta property="og:title" content="pp_cftest" />
<meta property="og:type" content="company" />
<meta property="og:url" content="http://www.pagepilot.co.uk/pp_cftest/" />
<meta property="og:site_name" content="PagePilot" />
<meta property="og:description" content="description text" />
<meta property="fb:app_id" content="242396009188876" />
<meta property="og:image" content="http://www.pagepilot.co.uk/views/pp_w_en/assets/images/ladbrokes.gif" />
</head>
<body>
<p>test content</p>
</body>
</html>
代码中似乎没有任何异常或缺失。只是不明白
There doesn't seem to be anything unusual or missing in the code. Just don't understand it.
推荐答案
调试器只会请求页面的前40KB,所以预计206(预期只有部分该文件已被退回,但我想有些服务器返回它的任何请求与一个范围:
头)
The debugger only requests the first 40KB of your page - so the 206 is expected (well, it's expected if only part of the document was returned but i guess some servers return it for any request with a Range:
header)
它应该不会影响您在Facebook上共享链接时正确读取标签和元数据的能力。
It shouldn't affect your ability to have the tags read correctly and the metadata populated when sharing a link on Facebook
这篇关于Facebook调试器:响应206的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!