Skip to content

Timestamp Checking Protocol

rbackhouse edited this page Aug 23, 2011 · 2 revisions

Timestamp Checking Protocol

The lsjs loader will make a single request to the configured timestampUrl POSTing a JSON array of objects with a url property and a timestamp property.

e.g

[
    {"url":"./js/dojo/_base/json.js","timestamp":"Thu, 18 Aug 2011 01:19:17 GMT"},
    {"url":"./js/dojo/query.js","timestamp":"Thu, 18 Aug 2011 01:19:17 GMT"},
    {"url":"./js/dojo/dom-geometry.js","timestamp":"Sun, 21 Aug 2011 12:22:05 GMT"},
    {"url":"./js/dojo/json.js","timestamp":"Thu, 18 Aug 2011 01:19:17 GMT"}
]

The timestamp checker is expected to check each of the URL's in the array comparing the provided timestamp with the one on the server. If it is different it should be added to a JSON list that is returned back to the loader

e.g

[
    "./js/dojo/_base/json.js",
    "./js/dojo/json.js"
]