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
9
votes
3 answers

How to preserve SSL with HTML5 application cache

I have an existing site that works fine over http and https (SSL). The SSL certificate is valid and can be confirmed by inspecting in the browser. I am starting to use a manifest file to enable the HTML5 application cache on my website. This is…
Jake
  • 1,135
  • 1
  • 12
  • 26
9
votes
2 answers

App cache manifest on CDN?

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.…
mckamey
  • 17,359
  • 16
  • 83
  • 116
9
votes
0 answers

Application Cache - net::ERR_FAILED

I'm trying to build an offline web form. It only uses jQuery and twitter bootstrap as external resources. I've tried to cache them but when I refresh offline I get net::ERR_FAILED for both jQuery and bootstrap. I'm very new to AppCache so any help…
am71722
  • 129
  • 12
9
votes
1 answer

How to use/create a MANIFEST, handle appCache events/errors and the use of swapCache

How do you use and create a MANIFEST file (structure), handle appCache events and errors, and when is swapCache needed?
8
votes
1 answer

View cached Appcache data

My application is currently using HTML5 appcache. I want to get the hash of files that I get from update() events. However, I can't seem to find out how to access the resources I downloaded. I want to do something like $.get( "/sunflowers.png",…
laycat
  • 5,381
  • 7
  • 31
  • 46
8
votes
0 answers

Firefox does not load page from offline cache manifest, but works fine on Chrome (+ cache manifest troubleshooting tips)

This is basically identical to this SO questions which has not been answered: Offline Web App not caching on Firefox but ok on Chrome I'm experiencing the same problem and I'll provide a bit more information because it might help someone trying to…
7
votes
2 answers

HTML5 Cache manifest weird bug with more content

I'm slowly but surely going completely crazy with the HTML5 web storage and application cache. Here is my example: http://daviddarx.com/stuffs/work/custom/54/ The cache manifest is valid and tested on http://manifest-validator.com/ :…
daviddarx
  • 3,485
  • 3
  • 20
  • 23
6
votes
3 answers

How can one download Mozilla's developer's documentation for offline reading?

Until recently, one could conveniently download Mozilla's developer's documentation, developer.mozilla.org.tar.gz, for offline reading. However, Mozilla seems to have upgraded the documentation to a new, SQL-based format, abandoning the old…
thb
  • 13,796
  • 3
  • 40
  • 68
6
votes
1 answer

How to create a rails 4 offline webapp?

I'm trying to create an app with Rails 4 that should be usable without internet connection. I've heard about html5 application cache and the rack-offline gem which is the approach I took. Now, it seems that it's not working properly on Rails 4 since…
goerwin
  • 1,231
  • 10
  • 20
6
votes
4 answers

How much Application session data can you actually hold?

I currently have an application that gets hit with over 20,000 users daily and they mostly look at one data table. This data table is filled with about 20 rows but is pulled from a "datatable" in a db with 200,000-600,000 records of information in…
SpoiledTechie.com
  • 10,515
  • 23
  • 77
  • 100
6
votes
1 answer

app cache doesn't work in the android device (works well on the chrome browser)

I'm trying to use app cache to approve the performance. I have been guided in various sites. (ex. http://xguru.net/621 ... ) make cache.man file, set mime-type as text/cache-manifest. Problem is... it works well at the Google chrome browser, but…
jieun
  • 61
  • 1
  • 2
5
votes
1 answer

Why are images in SVGs not always loaded from the application cache when previously cached on the iPad?

We have a web application which allows users to view SVGs. These SVGs usually contain images which are loaded using a relative url. As we want this to be an iPad 'web app' we also want it to be added to the iPad user's homescreen and for it to be…
Andy
  • 2,977
  • 2
  • 39
  • 71
5
votes
2 answers

window.applicationCache updates freeze browser - how to reduce their frequency or force them to be user-initiated

I've created a web app that caches all necessary code and data for use offline through applicationCache. However, every time the app starts up, it immediately tries to check for updates. This blocks the browser for a significant chunk of time, even…
ampersand
  • 4,264
  • 2
  • 24
  • 32
5
votes
2 answers

How to clear Application cache (HTML5 feature) using JavaScript?

Our Web-Application uses Application cache (cache manifest) to restore HTML page and resources in off-line mode. HTML-pages have sessionIDs as params in URI. So, after each logout and login action new HTML-pages are saved to application cache…
SAHbKA
  • 327
  • 1
  • 2
  • 14
5
votes
2 answers

Clearing the Cache on OS Versions above Marshmallow

I want to make an Android App which will clean the cache of other apps. I have figured out how to do that for Android Version below Marshmallow. This is what I am using for Android Honeycom and above: if (isExternalStorageWritable()) { …
Rahulrr2602
  • 701
  • 1
  • 13
  • 34
1
2
3
13 14