cordova-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/CB-4884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15011246#comment-15011246
] 

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: https://issues.apache.org/jira/browse/CB-4884
>             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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message