Hi, Im developing a firefox exrtention which can get weather alerts from various rss feeds and display them in a popup panel.
So, I need to know how rss reader know that rss feed has updated?
Do I have to check it using a timer?
The RSS specification includes a Time To Live (<ttl>) element, which is an optional sub-element of <channel>, indicating the time in minutes that "a channel can be cached before refreshing from the source".
This is the best clue you have as to the period your FF extension should use between updates. It is considered unfriendly to re-request at shorter intervals and some servers will block such requests, based on IP address.
As TTLs can be large (a day or more), your extension should cache all
channels in such a way that the cached feed can span user-sessions (ie by writing to hard disk not just using RAM).