简体   繁体   English

iOS 不更新 JavaScript 文件

[英]iOS not updating JavaScript files

I was updating my internal website.我正在更新我的内部网站。 I have a folder that has images and a folder that has javascript files.我有一个包含图像的文件夹和一个包含 javascript 文件的文件夹。

I was updating the javascript files on the server and testing on my desktop and everything was fine.我正在更新服务器上的 javascript 文件并在我的桌面上进行测试,一切都很好。

I went to look at the website on my iPhone and the updates weren't there.我去看看我的 iPhone 上的网站,但没有更新。 I used web inspector on my mac to see what the issue is, when I went to the resources tab in the developer console and had a look at the js file it was the old one that didnt contain the changes.我在我的 mac 上使用 web 检查器来查看问题是什么,当我转到开发人员控制台中的资源选项卡并查看 js 文件时,它是旧的,不包含更改。 How do I force my iphone to get the new js file?如何强制我的 iphone 获取新的 js 文件?

Clear your cache by going to Settings > Safari > Clear History & Website Data .转到Settings > Safari > Clear History & Website Data来清除缓存。 This will remove all the history, cookies, and caches for web views (including Safari) on your device.这将删除您设备上网络视图(包括 Safari)的所有历史记录、cookie 和缓存。 If you'd rather not nuke everything , you can go to Settings > Safari > Advanced > Website Data and swipe left on a specific URL to delete all cookies and caches stored by that specific site如果您不想取消所有内容,可以转到Settings > Safari > Advanced > Website Data然后在特定 URL 上向左滑动以删除该特定站点存储的所有 cookie 和缓存

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM