RSS <ttl> 元素

2018-03-09 15:30 更新

RSS <ttl> 元素

RSS <ttl> 元素输入端(feed)更新前可以被缓存的分钟数。


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

定义和用法

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


实例

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">

<channel>
  <title>W3Cschools Home Page</title>
  <link>http://www.w3cschools.com</link>
  <description>Free web building tutorials</description>
  <ttl>60</ttl>
  <item>
    <title>RSS Tutorial</title>
    <link>//www.w3cschool.cn/rss</link>
    <description>New RSS tutorial on W3Cschools</description>
  </item>
</channel>

</rss>

尝试一下 »

RSS 参考手册 完整 RSS 参考手册
以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号