cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Shakhnazarov (JIRA)" <>
Subject [jira] [Commented] (CB-4884) FileTransfer caches resources on download on iOS
Date Wed, 18 Nov 2015 15:53:11 GMT


Sergey Shakhnazarov commented on CB-4884:

It turned out that the caching was inside the webview itself, i.e. changed {code}element.src
= urlFn(entry);{code} to {code}element.src = urlFn(entry) + "?" + (+new Date());{code} and
the image updates now. The same on Android and Windows platform. 

And the issue does not reproduce if I remove all cache-related headers on the server (the
image updates anyway). 

> FileTransfer caches resources on download on iOS
> ------------------------------------------------
>                 Key: CB-4884
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer
>    Affects Versions: 3.0.0
>         Environment: iOS 5.x and above
>            Reporter: Ivo Stoilov
>              Labels: ios, no-repro, triaged
> FileTransfer uses default caching policy which causes all downloaded resources to be
cached locally, so it makes updating of the server resources impossible. I have tried with
NSURLRequestReloadIgnoringLocalAndRemoteCacheData and it works as expected.

This message was sent by Atlassian JIRA

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

View raw message