cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Azevedo (JIRA)" <>
Subject [jira] [Commented] (CB-3071) App cache is invalidated after complete restart of an app
Date Tue, 02 Aug 2016 20:33:20 GMT


David Azevedo commented on CB-3071:

I have tried Andrew Grieve possible work around and it indeed make the url cache work again.
I dont know if this breaks another thing.

You guys know why is needed to append an unique thing after the user agent?


To test i changed the file CDVViewController.m
        // Use our address as a unique number to append to the User-Agent.
        //_userAgent = [NSString stringWithFormat:@"%@ (%lld)", localBaseUserAgent, (long

   to this
        _userAgent = [NSString stringWithFormat:@"%@", localBaseUserAgent];

I have in my config.xml file 
<preference name="OverrideUserAgent" value="Mozilla/5.0 My Browser" />

The user agent on the request before was:  
"Mozilla/5.0 My Browser (140287863425184)"

And now is: 
"Mozilla/5.0 My Browser"

> App cache is invalidated after complete restart of an app
> ---------------------------------------------------------
>                 Key: CB-3071
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.5.0
>            Reporter: 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message