On Wed, Feb 18, 2009 at 8:27 AM, Ankit Jain <[email protected]> wrote: > I create a managed store using code similar to below: > > managedStore_ = > localServer_.createManagedStore('mapmaker.static.resources'); > managedStore_.manifestUrl = "http:\\someurltomanifestfile"; > managedStore_.checkForUpdate(); > managedStore_.enabled = true; > > Now I log all http requests using a proxy. From proxy it seems the > manifestfile is fetched repeatedly more than 5 times ( the file itself is > not changing) within few minutes, even after managed store has status is > complete. > > Can anybody explain why this happens? I only want it to check for updates > once at application start when the above code is executed.
It automatically checks for updates. This is to ensure that a buggy instance of the app (that fails to call checkForUpdate for example) doesn't get pinned in the cache for all time. Cache hits within the store trigger the auto update check. They are rate limited (no more than once per 10 seconds). These are if-modified-since requests, a 304 response would be ideal from gears point of view. > > Ankit >
