html5-appcache

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

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!).

How to get app cache manifest to work on Safari 7.0.3?

早过忘川 提交于 2019-12-05 07:51:33
I am already hooked for two days now and it's driving me crazy. Hopefully someone can shine some light on this matter. I am running: Mavericks (MAC), Safari Versie 7.0.3 (9537.75.14) My index.php looks like: <!DOCTYPE HTML> <html manifest="manifest.php"> <head> <title></title> <meta charset="UTF-8" /> <link rel="stylesheet" href="style.css" type="text/css" /> </head> <body> <p>The time is <time><?php echo time(); ?></time></p> </body> </html> My style.css looks like: html, body { margin : 0; padding : 0; font-size : 100%; font-family : "Helvetica Neue", Helvetica, Verdana, Arial, sans-serif; }

AppCache misbehaving in Safari, Firefox

﹥>﹥吖頭↗ 提交于 2019-12-05 07:34:55
I'm having some major trouble with AppCache. I've got a single page application (with real URLs using using Page.js and loading HTML from the server on page load, (dispatch: false) It's running on Bode.js, in particular it's a Sails.js app. I've got a manifest file in the HTML tag of the layout. The manifest file has been tested repeatedly and everything checks out. It works flawlessly in Chrome. Even in Safari, it shows up in the inspector correctly and has a list of the assets listed in the file. So far so good. However, when offline, Safari fails to load anything but the HTML document

How to include external Javascript in GWT offline application

核能气质少年 提交于 2019-12-05 03:23:04
问题 I have a GWT (well, GXT) application that uses an external JavaScript library to add functionality to my app. My application must work offline, too, and herein lies my problem. I am aware that adding files to the public folder will make them accessible by my GWT app, but this will not work in case of offline use. GWT compiles my app to make it available offline without problem, but it doesn't include the external JavaScript library. So, whenever I work within the application and reach the

Pre-populate HTML5 offline appcache for a UIWebView in an iOS application

浪尽此生 提交于 2019-12-04 23:59:21
Is it possible to create a UIWebView that has an HTML5 offline appcache pre-populated so that it will work offline even if it is the first time the user is accessing the UIWebView? If so, how? I know I can achieve this through other mechanisms, but the above is my first choice. And I'm just plain curious if it's possible. I'm seeing nothing about it in the documentation. I think this may reduce to a question of whether you can programmatically write to the UIWebView's cache file (which is to say, whether the UIWebView cache resides within your app's sandbox) – if you can't, then game over. If

AppCache Manifest Error

末鹿安然 提交于 2019-12-04 23:57:47
Edit : I had to remove some links. My manifest page seems to be causing errors on my web page. When you first go to the page everything appears to cache successfully, but upon refresh it fails to get files that exist. I made a quick test page to check out, here. Here is my manifest file. This is a VERY dynamic site by php & javascript, I haven't got too much into appcache with those factors, so I'm unsure if the issue has to do with the fact that so much content has to be conditionally set in. Any help would be greatly appreciated. NOTE: Java-Console will be needed (best used in Chrome).

Comparison between service worker and AppCache

老子叫甜甜 提交于 2019-12-04 16:45:38
问题 What are the core differences between service worker and AppCache. What are the pros and cons of each and when to prefer one over another . 回答1: The primary difference is that AppCache is a high-level, declarative API, with which you specify the set of resources you'd like the browser to cache; whereas Service Worker is a low-level, imperative, event-driven API with which you write a script that can intercept fetch events and cache their responses along with doing other things (like

SSL path in appcache network being restricted in Chrome

雨燕双飞 提交于 2019-12-04 15:14:05
Seeing some odd behaviour in Chrome, and not sure if it's expected behaviour when using appcache, or just Chrome. It's a single-page app, powered by our RestAPI, it works fine when the RestAPI is being requested under HTTP, however as soon as we change the url to be the HTTPS version then it stops working. There's not a lot (i.e. any) information in Chrome's console as to why it decides to stop working. We've managed to narrow it down to the NETWORK section in the appcache file, the only way we can get it to work is to use the * wildcard, which we don't want to do, as that bypasses the whole

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