微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

xml – RSS feed:如何推荐更新间隔?

发布RSS源时,XML中是否有一些属性可用于推荐更新间隔/频率?

如果它不是标准的一部分,是否有一些公认的方式?

此处的规范 http://www.rssboard.org/rss-specification#requiredChannelElements具有为channel元素指定的这些可选参数:

这些告诉客户什么时候不需要更新..

skipHours – A hint for aggregators telling them which hours they can skip. This element contains up to 24 < hour > sub-elements whose value is a number between 0 and 23,representing a time in GMT,when aggregators,if they support the feature,may not read the channel on hours listed in the < skipHours > element. The hour beginning at midnight is hour zero.

skipDays – A hint for aggregators telling them which days they can skip. This element contains up to seven < day > sub-elements whose value is Monday,Tuesday,Wednesday,Thursday,Friday,Saturday or Sunday. Aggregators may not read the channel during days listed in the < skipDays > element.

和/或这告诉客户他们需要更新的频率.

ttl – ttl stands for time to live. It’s a number of minutes that indicates how long a channel can be cached before refreshing from the source.

原文地址:https://www.jb51.cc/xml/293094.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。