cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shazron <>
Subject Re: Question about caching
Date Thu, 25 Apr 2013 19:57:00 GMT
We set up a cache in AppDelegate.m[1], and I suppose you could hook into
CDVPageDidLoadNotification[2] in your own plugin, then clear the cache[3]:

[[NSURLCache sharedURLCache] removeAllCachedResponses]


On Thu, Apr 25, 2013 at 11:46 AM, David Lewis <> wrote:

> I've got a Cordova 2.6 app on iOS 6 that uses ~/Documents as the webroot
> for updating purposes. Because of the JS load, when the index.html is
> reloaded after it is changed (delete and copy from the update), not
> everything is loaded again.
> I don't have the details for it, but there is a display parameter that
> should change when the new page is loaded. So far, the only way to achieve
> this is through resetting the entire app through user intervention.
> I've seen reference to iOS Safari caching POST, which we are certainly
> using, but the data in question is generated from local files.
> Is there a way to reset the cache when the index.html is reloaded?
> Thanks,
> David

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message