uniapp webview清理缓存
后端服务器配置,JS/CSS文件的缓存时间为 :-1slocation ~ .*.(js|css)?${expires -1s;error_log off;}前端打开webview页面处://ios 禁用缓存,测试生效!!let cache1 = plus.ios.newObject('NSURLCache');let cache = plus.ios.invoke(cache1, 'sharedURLCache');plus.ios.invoke(cache, 'removeAllCachedResponses');plus.ios.invoke(cache, 'setDiskCapacity:', 0);plus.ios.invoke(cache, 'setMemoryCapacity:', 0);//安卓端缓存清理。plus.cache.clear();亲测有效 ~