cache-manifest

How should I structure my HTML5 manifest given these requirements?

╄→гoц情女王★ 提交于 2019-12-10 21:33:03
问题 I have a HTML jquerymobile App, I need to show an offline page when the user tries to load the app from their home screen. The page I want them to see is gone-offline.jsp. Problem is, if I include the HTML manifest on every page the user visits, that page ends up getting cached, which means when the user loads the app offline, they sometimes see the page they visited but images are missing etc, I do not want that, I want a clean caching system that only caches a certain page. Is it possible

HTML5 App Cache: Manifest ist updated but files are taken from appcache one more time

こ雲淡風輕ζ 提交于 2019-12-09 17:05:20
问题 I have a cache manifest with a comment in it # Version 3.2 in order to update all the App I simply change the Version number. It works, but: When I update the manifest, everything is updated correctly (new cache is filled) but the actual files are taken ONE more time from the (old) cache. when I reload twice everything is updated. Is this behaviour correct? Using chrome 21. Thanks 回答1: Yes, this is the current "correct" behaviour. This is what happens: When you just made changes to the

On iOS, where is the “add to homepage” cache kept, and how do I clear it?

∥☆過路亽.° 提交于 2019-12-08 02:32:40
问题 I'm making an html5 game on the iPad (iOS v7) and it's very stubborn about releasing the cache when I add it to the homepage. This works the way you'd expect if I view it in Safari: If I refresh once or twice, the page gets cached in its latest state. But on the homepage it's a different story. It keeps on using the old cache instead of the latest. I've noticed that if I clear Safari's data in the settings, I can force Safari to refresh the cache the next time I view the site. But, if I

IOS Web App Video Caching Playback Issue (mp4)

大城市里の小女人 提交于 2019-12-07 09:30:25
问题 Hello, I'm running the most recent version of iOS (5.0.1) on an iPad2 and cannot get the caching of .mp4 videos to work properly . I've added the necessary listeners to listen for applicationCache events and then write to the console when those events happen, most notably, when my app is cached as noted here: https://developer.apple.com/library/archive/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/OfflineApplicationCache/OfflineApplicationCache.html Using the debug console in mobile

On iOS, where is the “add to homepage” cache kept, and how do I clear it?

一曲冷凌霜 提交于 2019-12-06 09:19:24
I'm making an html5 game on the iPad (iOS v7) and it's very stubborn about releasing the cache when I add it to the homepage. This works the way you'd expect if I view it in Safari: If I refresh once or twice, the page gets cached in its latest state. But on the homepage it's a different story. It keeps on using the old cache instead of the latest. I've noticed that if I clear Safari's data in the settings, I can force Safari to refresh the cache the next time I view the site. But, if I delete the Safari data, I can still view the old app in the icon that's on my homepage. So how do I clear

Using Appcache with CodeIgniter

核能气质少年 提交于 2019-12-06 07:59:28
问题 Been trying to make Appcache works with CI for several hours but still couldn't get it work. Background: I'm using IIS server. I've tested the Appcache by putting the manifest file and the php file that needs to be cached in a simple folder, it worked, so I'm pretty sure the server environment is good. Say I want to cache the url below http://mydomain.com.au/myapp/index.php/test/index Here's my manifest.php (I don't know which one will work so I put 2 lines under CACHE, they all refer to the

how can I do manifest request with WKWebView

回眸只為那壹抹淺笑 提交于 2019-12-06 04:37:37
问题 I was trying to use the new WebView in my app, but it seems that WKWebView can't work with NSURLCache , and Manifest request didn't work, no request was loaded and also nothing was stored. Everything seems to work better using WKWebView instead of UIWebView except for using NSURLCache and Manifest , so I wonder if there are some ways to solve this matter. P.S. I've tried Private API _setOfflineApplicationCacheIsEnabled: and it does work, but app using non-public API will be rejected by apple.

IOS Web App Video Caching Playback Issue (mp4)

时光怂恿深爱的人放手 提交于 2019-12-05 12:09:10
Hello, I'm running the most recent version of iOS (5.0.1) on an iPad2 and cannot get the caching of .mp4 videos to work properly . I've added the necessary listeners to listen for applicationCache events and then write to the console when those events happen, most notably, when my app is cached as noted here: https://developer.apple.com/library/archive/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/OfflineApplicationCache/OfflineApplicationCache.html Using the debug console in mobile safari on my ipad, I can see messages stating that my application has "cached" successfully (hooray!).

Cache Manifest: What is the prefer-online setting?

流过昼夜 提交于 2019-12-04 16:21:07
问题 I've been looking for a way to cache pages for use only when the user is offline, otherwise download the pages normally. However, once a cache manifest is detected, the browser will only load from those cached pages. My search landed me on http://whatwg.org. The section about Writing Cache Manifests caught my eye. Here's an excerpt: A section header Section headers change the current section. There are four possible section headers: CACHE: Switches to the explicit section. FALLBACK: Switches

Using Appcache with CodeIgniter

六眼飞鱼酱① 提交于 2019-12-04 12:00:43
Been trying to make Appcache works with CI for several hours but still couldn't get it work. Background: I'm using IIS server. I've tested the Appcache by putting the manifest file and the php file that needs to be cached in a simple folder, it worked, so I'm pretty sure the server environment is good. Say I want to cache the url below http://mydomain.com.au/myapp/index.php/test/index Here's my manifest.php (I don't know which one will work so I put 2 lines under CACHE, they all refer to the same view file) <?php header('Content-Type: text/cache-manifest'); echo "CACHE MANIFEST CACHE: index