Determining if the page is still fresh

The M-Business Sync Server compares this value to the max-age value. Since 7935 is less than 18000, the page is considered fresh and will be uploaded to the client without having to contact your server over the Internet.

Note

Actually, we do a second level of caching here. The client on the mobile device also keeps track of the document's age and its max-age. If the version of the document on the mobile device is still fresh, we do not even bother requesting the page in the first place. If we get a new version of the page, but a checksum reveals that the two pages are exactly alike, we do not upload the same document again. This saves the user a lot of time, as uploading data to the mobile device can be a slow process.

This cache stored on the client is known as the client cache. The cache on your M-Business Sync Server, which is used by many different clients, is called the shared cache.

Suppose a few more hours go by, and once again, somebody requests this page from your channel. The local time is 22:36:44. Now, that page is 5:08:42, or 18522 seconds old. 18522 is greater then 18000, so the page is considered stale.