RSS <ttl> 元素

RSS <ttl> 元素

RSS  参考手册 完整 RSS 参考手册

定义和用法

<ttl> (ttl=time to live) 元素指定在 feed 源更新此 feed 之前,feed 可被缓存的分钟数

实例



<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
  <title>知识兔</title>
  <link>http://www.zhishitu.com</link>
  <description>免费的编程学习网站</description>
  <ttl>60</ttl>
  <item>
    <title>RSS 教程</title>
    <link>http://www.zhishitu.com/rss</link>
    <description>知识兔 - RSS 教程</description>
  </item>
</channel>
</rss>

知识兔 »RSS  参考手册 完整 RSS 参考手册
计算机