Questions tagged [application-cache]

The Application Cache (or AppCache), part of HTML5, allows a developer to specify which files the web browser should cache and make available to offline users. Your app will load and work correctly, even if the user presses the refresh button while they're offline.

Application Cache is an obsolete part of HTML5:

Do not use it in old or new projects. Pages or Web apps using it may break at any time. It's in the process of being removed from the Web platform. Use Service Workers instead.

References

207 questions
5
votes
1 answer

Best Approach Today for Offline Web Apps

I'm trying to build a web app that needs to work offline at times. The standard approach until now has been to use the browser's Application Cache. However, it appears that Application Cache is deprecated and will be removed from browsers in the…
5
votes
0 answers

Why doesn't Firefox check application cache manifest for updates?

I have problems with the Application cache, that seem to be only related to Firefox Desktop and Firefox on Android. This is my manifest file, named cache.manifest.php (PHP is used to set the correct HTTP headers): CACHE…
Udo G
  • 12,572
  • 13
  • 56
  • 89
5
votes
1 answer

Chrome Application Cache doesn't send `Origin` header when caching cross-domain assets

I have an app that wants to load and manipulate images. The browser requires that the image be either from the same origin as the app or that the image response allows cross-origin access. My images are served via CDN (AWS S3), and they are…
5
votes
2 answers

AppCache excruciatingly slow on iOS

I am developing a web-app utilizing Application Cache, and everything is working great on desktop browsers and on Android (even very old & slow android handsets). However downloading the appcache is taking much much much longer on iOS 6 in both…
Karl White
  • 497
  • 1
  • 5
  • 13
4
votes
1 answer

window.applicationCache.status always 0 in firefox

I have a website with a manifest that validates (http://manifest-validator.com/), and files are clearly downloaded since the "progress" event is fired for each file - but, window.applicationCache.status is always 0 (which mean the website does not…
Eilev
  • 263
  • 1
  • 10
4
votes
1 answer

application cache & 404/500 pages

I have a manifest that looks somethin like this: CACHE MANIFEST # e4a75fb378cb627a0d51a80c1cc5684c2d918d93e267f5854a511aa3c8db5b1a /a/application.js /a/application.css NETWORK: * FALLBACK: / /offline/redirect The issue is that my /404.html and…
jsharpe
  • 2,546
  • 3
  • 26
  • 42
4
votes
1 answer

Chrome reporting html5 cache manifest mime type incorrectly

I'm trying to set up a cache manifest for a site and am having little luck. A demo page is here: http://www.matthewlehner.ca The HTML I'm using has this structure: .htaccess in the root…
4
votes
3 answers

Programmatically clear HTML 5 application cache in log-on/log-off scenario

HTML 5 offline logic is encapsulated in window.applicationCache object. However it looks like it's not possible to programmatically clear cache data, for example, when user logs off from the system. Is there any other way to clear HTML 5 application…
Konstantin
  • 3,817
  • 4
  • 29
  • 39
4
votes
1 answer

HTML Living Standard just removed application cache related code/documentation. Does this mean it got deprecated completely?

Title says most of it. Until today it was possible to see application cache related documentation in https://html.spec.whatwg.org/#applicationcache Now, the page doesn't show anything related to application cache. Does this mean it got completely…
Kemal Tezer Dilsiz
  • 3,739
  • 5
  • 24
  • 43
4
votes
0 answers

Application Cache Error event: Failed to parse manifest

In my browser app, I use an HTML5 ApplicationCache manifest which is valid according to http://manifest-validator.com/validate It looks as follows CACHE MANIFEST # MYAPPNAME 5.8.33 CACHE: index.html app.js NETWORK: * When I load the app, Google…
Alexander
  • 19,906
  • 19
  • 75
  • 162
4
votes
1 answer

Application Cache : why Chrome show some files underlined in the console log?

During an application cache update, Chrome logs : Application Cache Progress event (1 of 2) https://example.com/file1.css Application Cache Progress event (2 of 2) https://example.com/file2.js Sometimes the URL is underlined (event 3/4 in this…
Tom
  • 4,666
  • 2
  • 29
  • 48
4
votes
0 answers

Is there any way other than caching to avoid the second request of the app manifest?

When taking a page offline, the browser will (glossing over the details) download the page, its manifest, and its resources, and then when done it will re-request the manifest (Step 24 here), and if what it gets back doesn't match the first one it…
T.J. Crowder
  • 1,031,962
  • 187
  • 1,923
  • 1,875
4
votes
6 answers

Application Cache Error event: Manifest fetch failed (4)

I am trying to implement AppCache in my application. I have added the corresponding MIME type in IIS. Please see my below html tag My manifest looks like: CACHE MANIFEST Content/img/logo-header.png…
4
votes
0 answers

Application cache updates hang in CHECKING state

We have a web application that makes use of the HTML 5 application cache to provide offline functionality. On Android the application runs inside a webview in a native application. We have tested the application in version 4.4 and it works…
BruceHill
  • 6,954
  • 8
  • 62
  • 114
4
votes
1 answer

Is there a way to add files to the HTML5 applicationCache using javascript?

Is there a way to use JavaScript to dynamically inject files into the applicationCache? I have seen some references to an applicationCache.add() function, but I can't find any documentation for it and it doesn't exist on the window.applicationCache…
8three
  • 661
  • 1
  • 5
  • 10
1 2
3
13 14