How can I clear the cache of an IOS Web App on the Homescreen?

后端 未结 6 1866
难免孤独
难免孤独 2021-02-02 09:22

I am using JQTouch to create a Web App on the Homescreen using meta tag \"apple-mobile-web-app-capable\", but no matter how many times I clear the cache from within Settings, th

6条回答
  •  囚心锁ツ
    2021-02-02 09:49

    You could try adding a unique string to the end of your js include's src attribute (use a timestamp, for example). Bear in mind you'll have to change this unique string for each refresh you want to do, so you may want to consider doing lazy-loading (which may in itself solve your problem):

    This usually forces the browser into grabbing the latest version of the script. Might work...

提交回复
热议问题