如何在Cordova Universal Windows Phone 8.1 App中禁用WebView Cache?

编程入门 行业动态 更新时间:2024-10-28 06:24:34
本文介绍了如何在Cordova Universal Windows Phone 8.1 App中禁用WebView Cache?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

以下相同请求无法到达服务器。我正在使用$ http来自angular。我确信这些请求会被windows webview缓存,因为在Android中它不会缓存。

Following same requests doesn't reach the server. I am using $http from angular. I am sure the requests get cached by the windows webview, because in Android ripple it does not cache.

我已经尝试过此请求/标题:

var request = { withCredentials: true, cache: false, headers: { 'Cache-Control': 'no-cache', 'If-Modified-Since': 'Mon, 26 Jul 1997 05:00:00 GMT', 'Pragma': 'no-cache', 'timestamp': timestamp, }, method: 'GET', url: targetUri, }

服务器不允许在get请求中添加到url的任何其他参数。

Any other parameter added to url in get request isn't allowed by the server.

推荐答案

Windows Phone通用应用程序不使用webview。基础项目是WINJS项目。

The windows phone universal app doesn't use webview. The underlying project is WINJS project.

这是否适用于其他平台?

Does this work for other platform?

您是否曾在Ashish Sharma找到此博客

Have you ever found this blog by Ashish Sharma

www.oodlestechnologies/blogs/AngularJS-caching-issue-for-Internet-Explorer ?

适用于Internet Explorer,但我认为值得一试。保留上述代码并另外应用解决方法。

It is for Internet Explorer, but I think it's worth to try. Keep your above code and apply the workaround in addition.

更多推荐

如何在Cordova Universal Windows Phone 8.1 App中禁用WebView Cache?

本文发布于:2023-11-06 04:19:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1562700.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何在   Universal   Windows   Phone   Cordova

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!