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 object in my testing with Chrome.
I have a web application I'm working on that based on a decision needs to inject files into applicationCache. Unfortunately this application doesn't have a traditional server-side component (it's basically static files and JS that communicates with a data source), so I can't just create a dynamic manifest file using something like PHP.
Is there any way to do this?
Thanks!
localStorageinstead to store the file contents, then then use them as resources from there using Data URIs.add()method your hear about is not part of the HTML5 Offline Applications specifications at all. It seems it is an internal method used by the Chrome engine in Firefox.