You could try appending random query parameters to bust caching.
On Thu, Apr 25, 2013 at 4:52 PM, David Lewis wrote:
> Thanks.
> On Apr 25, 2013 4:19 PM, "Shazron" wrote:
>
> > This is more of an Objective-C question now rather than a Cordova API
> one.
> > Not sure if I have any answers.
> >
Thanks.
On Apr 25, 2013 4:19 PM, "Shazron" wrote:
> This is more of an Objective-C question now rather than a Cordova API one.
> Not sure if I have any answers.
>
>
> On Thu, Apr 25, 2013 at 1:15 PM, David Lewis wrote:
>
> > I call removeAllCachedResponses before loading the new index.html.
> >
This is more of an Objective-C question now rather than a Cordova API one.
Not sure if I have any answers.
On Thu, Apr 25, 2013 at 1:15 PM, David Lewis wrote:
> I call removeAllCachedResponses before loading the new index.html.
>
> The page does appear to reload but we have files that load file
I call removeAllCachedResponses before loading the new index.html.
The page does appear to reload but we have files that load files and files
that get injected into divs. The updated files are not injected. The old
cached version is used instead.
NSString *reloadTarget = [docDir stringByAppe
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]:
e.g.
[[NSURLCache sharedURLCache] removeAllCachedResponses]
[1]
https://github.com/apache/cordova-ios/blob/c6e71147386d4ad94b07428952d1aae0a9cbf3f5/
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 par