User:Mconnor/Pending/SearchUpdates: Difference between revisions

Jump to navigation Jump to search
Line 10: Line 10:
</pre>
</pre>


On first use of a search descriptor after the validity date (optionally defined in the <ValidUntil> element, defaults to 0 if not present), the UA will do a GET request to the URL specified.  If there are no changes, return an HTTP 304 Not Modified response to the client.  The UA should update the ValidUntil timestamp by either the UpdateInterval or the minimum next interval on this response.  In order to minimize failed attempts, any errors will be treated as no update available.
On first use of a search descriptor after the validity date, the UA will do a GET request to the URL specified.  If there are no changes, return an HTTP 304 Not Modified response to the client.  The UA should update the ValidUntil timestamp by either the UpdateInterval or the minimum next interval on this response.  In order to minimize failed attempts, any errors will be treated as no update available.


If an update is available, the new search descriptor should be returned by the server and parsed by the UA.  The new version will be used in place of the original version.  If there is a ValidUntil timestamp is less than the minimum update interval, that value should be bumped to satisfy that requirement.  If the base updateURL is different, the update MUST be rejected by the UA.
If an update is available, the new search descriptor should be returned by the server and parsed by the UA.  The new version will be used in place of the original version.  If the base updateURL is different, the update MUST be rejected by the UA.


UAs providing a default set of descriptors may reset to a new default set and clear any updates as appropriate, and will check for updates for those defaults on first use as described above.  This allows a change to updateURLs as needed.
UAs providing a default set of descriptors may reset to a new default set and clear any updates as appropriate, and will check for updates for those defaults on first use as described above.  This allows a change to updateURLs as needed.


== UpdateInterval element ==
== UpdateInterval element ==
Confirmed users, Bureaucrats and Sysops emeriti
812

edits

Navigation menu