FeedBurner SmartFeed 使用哪种链接类型
一整天都在寻找正确的答案,但似乎没有人知道,所以我想在我崩溃之前我应该在这里尝试一下,作为最后的努力。
FeedBurner 的 SmartFeed 服务执行以下操作:
将您的 Feed 即时转换为 格式(RSS 或 Atom)兼容 您的访客的提要阅读器 应用程序。
根据上述信息,添加到我的 部分是正确的吗?区别在于
type="foo"
部分?
<link rel="alternate" href="<?php echo feedburner_url(); ?>"
type="application/rss+xml" title="FooBar RSS News Feed" />
或者...
<link rel="alternate" href="<?php echo feedburner_url(); ?>"
type="application/atom+xml" title="FooBar Atom News Feed" />
或者甚至可能两者都有?
到处都找不到答案。 Google(拥有 FeedBurner)、Google 群组、FeedBurner 帮助等。而 FB 则没有任何类型的帮助系统。也许这就是一个暗示? =)
Searching for the correct answer all day, and nobody seems to know, so I thought I'd give it a shot here as a last effort before I keel over.
FeedBurner's SmartFeed service does this:
Translates your feed on-the-fly into a
format (RSS or Atom) compatible with
your visitors' feed reader
application.
Based on the above information, which would be correct to add to my <head>
section? The difference being the type="foo"
sections?
<link rel="alternate" href="<?php echo feedburner_url(); ?>"
type="application/rss+xml" title="FooBar RSS News Feed" />
or...
<link rel="alternate" href="<?php echo feedburner_url(); ?>"
type="application/atom+xml" title="FooBar Atom News Feed" />
or possibly even both?
Can't find the answer anwywhere. Google (owns FeedBurner), Google groups, FeedBurner help, etc. And FB conveniently doesn't have any type of help system. Maybe that's a hint? =)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您可以同时使用其中一个或两者。
应该发生的情况是,用户的 feed 阅读器将发出一个 HTTP 请求,其中包含“Accept:”标头,指示其想要的 feed 类型(
application/atom+xml
或application/rss+xml )。然后,Feedburner 会查看 Accept 标头并为您提供适当的类型。
我认为你把两者都放上就可以了。如今,提要阅读器足够聪明,能够弄清楚如何以易于使用的格式获取提要。
I'd think you could use either or both at the same time.
What should happen is that the user's feed reader will make an HTTP request with the 'Accept:' header indicating what type of feed it wants (
application/atom+xml
orapplication/rss+xml
). Feedburner would then look at the Accept header and serve up the appropriate type for you.I think you are fine with putting both up. Feed readers are smart enough nowadays to figure out how to get the feed in a format it can easily use.