views:

213

answers:

1

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.

+2  A: 

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)

Duncan Smart