加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-16 07:58:41 所属栏目:百科 来源:网络整理
导读:发布RSS源时,XML中是否有一些属性可用于推荐更新间隔/频率? 如果它不是标准的一部分,是否有一些公认的方式? 此处的规范 http://www.rssboard.org/rss-specification#requiredChannelElements具有为channel元素指定的这些可选参数: 这些告诉客户什么时候不
发布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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读