문제

I have created a web app for the iPad and have set the following tag:

<meta content="yes" name="apple-mobile-web-app-capable" />

I am not using a manifest file because I don't want to use offline yet the iPad seems to cache it anyway.

I have had to reset the iPad to clear this cache, is there another way to sort this out?

도움이 되었습니까?

해결책

CSS files should be refreshed every time you start your app. Most problems appear with JavaScript calls. To solve that: In your tag, add a parameter with a timestamp in your programming language, for example with php:

<script type="text/javascript" src="javacsript.js?v=<?php echo time(); ?>"></script>

That worked for me. If you still have problems with your CSS files, try to do the same with those tags:

<link rel="stylesheet" href="stylesheet.css?v=<?php echo time(); ?>" />

I haven't tried this one though.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top