设置iCalendar Feed的更新限制 [英] Set Update Limits on iCalendar Feed

查看:90
本文介绍了设置iCalendar Feed的更新限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中有一个日历供稿(.ics),但它很大,因为它包含4,000多个事件.指定下载多少个事件或日历应该往后或向前走多远时,是否有标准或最佳实践?

不过,我的主要问题是如何在日历上配置或设置更新限制,例如,用户使用Outlook订阅日历,而Outlook仅每几个小时更新一次.目前,我的Feed缓存了几个小时,但是如果我可以安装Outlook或任何客户端,则用户仅每隔几个小时检查一次更新就可以了.

解决方案

要仅每小时检查一次更新(例如),请在VCALENDAR文件中使用以下命令:

X-PUBLISHED-TTL:PT1H

我从Microsoft协议文档之一中收集了此信息 [MS-OXCICAL]:iCalendar到约会对象转换协议规范(下载链接的PDF)

2.1.3.1.1.15属性:X-PUBLISHED-TTL

RFC参考:N/A

允许的实例数:0,1

格式:持续时间( [RFC2445] 第4.3.6节)

简要说明:为具有同步功能的客户端和服务器指定建议的iCalendar文件下载频率.

导入日历对象
该属性应该32.被忽略.

从日历对象导出
如果此iCalendar定期自动发布到远程位置,则此属性应该33.设置为最小间隔分钟.

I have a calendar feed (.ics) available from my application, but it's quite large since it includes over 4,000 events. Is there a standard or best practice when it comes to specifying how many events get downloaded or how far back or forward the calendar should go?

My main question though, is how to configure or set an update limit on the calendar so say a user is subscribing to the calendar using Outlook that it's only updated every few hours. I currently have my feed cached for a few hours, but if I could have Outlook or whatever client the user is using only check for updates every few hours that would be ideal.

解决方案

To only check for updates hourly (for example) use this in your VCALENDAR file:

X-PUBLISHED-TTL:PT1H

I gleaned this information from one of the Microsoft Protocol documents [MS-OXCICAL]: iCalendar to Appointment Object Conversion Protocol Specification (download the linked PDF)

2.1.3.1.1.15 Property: X-PUBLISHED-TTL

RFC Reference: N/A

Number of Instances Allowed: 0, 1

Format: Duration ([RFC2445] section 4.3.6)

Brief Description: Specifies a suggested iCalendar file download frequency for clients and servers with sync capabilities.

Importing to Calendar objects
This property SHOULD<32> be ignored.

Exporting from Calendar objects
If this iCalendar is being automatically published to a remote location at regular intervals, this property SHOULD<33> be set to that interval with a minimum granularity of minutes.

这篇关于设置iCalendar Feed的更新限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆