application-cache

App cache manifest on CDN?

我怕爱的太早我们不能终老 提交于 2019-12-03 07:33:37
I'm reading through details on HTML5's app cache manifest (especially from this excellent article ). I'm curious if this idea would work: We host all of our static resources (scripts, css, fonts, images) on a CDN within a subdomain (e.g. cdn.example.com and app is on www.example.com). Is it possible to host the app cache manifest on the CDN as well? For example, <!doctype html> <html manifest="http://cdn.example.com/appcache.manifest"> ... <script src="http://cdn.example.com/foo.js"></script> ... </html> If yes, can the manifest listings be from the CDN root? For example, in the manifest:

Force applicationCache to reload cached files

旧城冷巷雨未停 提交于 2019-12-03 01:44:36
I'm using the HTML5 applicationCache to store many Javascript, CSS, image, etc. files for a page. If I update one of those files, the browser never reloads it. I have tried the following: Calling applicationCache.update() on page load Listening for applicationCache's updateready event, and calling swapCache() and window.location.reload() Adding a timestamp comment to the manifest file itself to force the browser to realize the manifest has changed Surely this can't be this hard. How do I convince the browser to re-request some cached file? Peter Lubbers To force any new (or changed) file to be

Service Worker: files are updated on the server but old version showing in browser

会有一股神秘感。 提交于 2019-12-02 07:49:01
问题 I am building a static app with PouchDB on Google AppEngine. When I open the site in a browser window, it is showing a version I uploaded several hours ago. If I open the site in an incognito window, the updated version is displayed (therefore I don't think it is actually an error in the console). I put a new version number in app.yaml I have migrated all traffic to the new version. I have cleared my cache, deleted cookies, checked my application data, everything. I even reinstalled Chrome

Application Cache or Service Workers - which to use in 2016/Q2?

北城余情 提交于 2019-11-30 00:01:48
Quick question for discussion really, as I wanted to have input from different people. I am in the process of developing a web page app that must be available offline. Now to do this, as I understand it, you would go about using either the application caching feature or by using service workers. However, here is the conundrum I have. When researching the application cache, the MDN clearly states : Deprecated: This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web

Is swapCache() required in HTML5 offline apps?

北慕城南 提交于 2019-11-29 02:52:31
问题 If I don't implement any updateready event handler and don't call swapCache() , does that mean that the browser will always use the first (oldest) downloaded version of the application? If no, then why is the swapCache() method needed? 回答1: Swapcache makes sure that "subsequent" calls to cached resources are taken from the new cache. Subsequent meaning after swapcache. To see this in action try setting the src property of an img dynamically after the swapcache call in the updateready event

HTML5 - cache manifest working great on Chrome but not on Firefox and Opera

允我心安 提交于 2019-11-28 23:03:19
I am developing a web app for offline use, thus I need to use the application cache functionality. Everything works great on Chrome (15.0.874.106) but is doesn't work on Firefox (7.0.1) and Opera (11.52). This is my cache manifest file cache.manifest.php (I have reduced it to the bare minimum): <?php header("Cache-Control: max-age=0, no-cache, no-store, must-revalidate"); header("Pragma: no-cache"); header("Expires: Wed, 11 Jan 1984 05:00:00 GMT"); header('Content-type: text/cache-manifest'); ?>CACHE MANIFEST CACHE: /app/common/css/reset.css /favicon.ico And this is the first 4 lines of the

MDN javascript docs for offline use

不羁的心 提交于 2019-11-28 15:13:32
I am trying to make MDN's Javascript Reference available for offline browsing (personal use). I am not the website's owner nor developer, and I can only access its generated output. My first thought was to inject an HTML5 appcache.manifest in the page ; Using manifestR I have generated a list of the page's assets. Then I've tried pointing to my local manifest file using the file:/// protocol, using the http:// protocol and finally using a base64 string , representing the file's contents ( data:text/cache-manifest, ). Nothing seems to work. After googling a bit, I stumbled upon their public FTP

Using Wildcard in FALLBACK section of Cache manifest file HTML5

半腔热情 提交于 2019-11-28 05:07:28
问题 How to create an offline enabled web-application such that when user visits hxxp://mywebsite/ and is offline than hxxp://mywebsite/offline/ is displayed. [There are about 100 different dynamic pages in my website, so I cannot afford to hardcode all of them in the cache manifest file] 回答1: CACHE MANIFEST CACHE: /Offline/OfflineIndex.html FALLBACK: / /Offline/OfflineIndex.html NETWORK: * This will cause all your pages across the entire site to redirect to offline when offline. The only issue is

Application cache in HTML5 doesn't work in Android PhoneGap application

ε祈祈猫儿з 提交于 2019-11-28 02:11:50
问题 I'm trying to use application cache in HTML5 for Android PhoneGap Application, but this doesn't work, it doesn't feel with ApplicationCahce Events. function logEvent(event) { console.log(event.type); } window.applicationCache.addEventListener('checking', logEvent, false); window.applicationCache.addEventListener('noupdate', logEvent, false); window.applicationCache.addEventListener('downloading', logEvent, false); window.applicationCache.addEventListener('progress', logEvent, false); window

MDN javascript docs for offline use

醉酒当歌 提交于 2019-11-27 19:43:36
问题 I am trying to make MDN's Javascript Reference available for offline browsing (personal use). I am not the website's owner nor developer, and I can only access its generated output. My first thought was to inject an HTML5 appcache.manifest in the page ; Using manifestR I have generated a list of the page's assets. Then I've tried pointing to my local manifest file using the file:/// protocol, using the http:// protocol and finally using a base64 string , representing the file's contents (