Skip to content

Instantly share code, notes, and snippets.

@jammus
Created May 6, 2011 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jammus/959332 to your computer and use it in GitHub Desktop.
Save jammus/959332 to your computer and use it in GitHub Desktop.
Supporting files for jQM iPhone appcache issue
CACHE MANIFEST
CACHE:
index.html
otherpage.html
css/jquery.mobile.min.css
js/jquery.min.js
js/jquery.mobile.js
NETWORK:
https://*
http://*
*
<!DOCTYPE html>
<html manifest="default.appcache">
<head>
<title>Mobile</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="stylesheet" href="css/jquery.mobile.min.css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.mobile.js"></script>
</head>
<body>
<div id="index" data-role="page">
<div data-role="header">
<h1>Title</h1>
</div>
<div data-role="content">
Some content. <a href="otherpage.html">Read more</a>
</div>
<div data-role="footer">
</div>
</div>
</body>
</html>
<div id="index" data-role="page">
<div data-role="header">
<h1>Title</h1>
</div>
<div data-role="content">
Some more content
</div>
<div data-role="footer">
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment