[
https://issues.apache.org/jira/browse/CB-3071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13880342#comment-13880342
]
Shazron Abdullah commented on CB-3071:
--------------------------------------
My hunch is that for UIWebView, it is caching but it does not use the user set
policy for NSURLCache and always stores it in memory. Although there was a
workaround suggested of using SDURLCache that implied that this overriding
works -- so I'm not sure if my first sentence is valid.
This might not be a solution that the Cordova core can solve. If the SDURLCache
solution works, my suggestion is to create a plugin to wrap it, and load it at
startup.
> App cache is invalidated after complete restart of an app
> ---------------------------------------------------------
>
> Key: CB-3071
> URL: https://issues.apache.org/jira/browse/CB-3071
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.5.0
> Reporter: Shazron Abdullah
> Assignee: Shazron Abdullah
> Attachments: apache server 200 on GET requests from IOS Cordova
> client.pdf, apache server 304 on GET requests from cordova client.pdf,
> headers
>
>
> I have this report from a developer:
> We've recently upgraded from 2.2 to 2.5 on IOS.
> In 2.2, our application leveraged cached assets after a complete restart of
> the application. In 2.5 the same scenario always requests new assets from
> the web server. The web server has not changed, and it returns caching
> instructions with the content. Once the application is running, the cached
> assets are utilized as we expect.
> Is this by design?
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)