Dne 9.11.2008 16:23, Boris Zbarsky napsal(a):
Is there an alternative method to, the now deprecated,
prefetchURIForOfflineUse that prefetches and places a URI in the
offline cache?

There's having an offline manifest with the page... Or perhaps using
nsIOfflineCacheUpdate directly.

Does this method happens to be an answer to my problem as well? I am looking for a way how to implement a fix for https://bugzilla.mozilla.org/655749, i.e. how to put programatically a resource to the offline application cache (https://developer.mozilla.org/en/Offline_resources_in_Firefox).

My extension (Jetpack-based) https://fedorahosted.org/bugzilla-triage-scripts/ has all its business logic (so to say) in a JSON file which could be downloaded from anywhere users puts it. However, during the recent outage of (otherwise very reliable) server fedorapeople.org I was rudely reminded that there is no such thing as a 100% reliable server, so I would prefer if my users would have the configuration file cached and only updated when necessary, and when the server is down (or whole internet connection ... I am also playing with the idea of making whole extension working with Bugzilla offline, and posting the results only when online), then user would have still working system.

I started to write my own simple cache (like in http://is.gd/Tasdyd ) but it seems to be silly not to use what's already in Firefox if it is at least accessible to the Javascript add-on. The only thing I found which seemed to be pointing in the right direction is but is a bug https://bugzilla.mozilla.org/367447 but it seems to be based on <link rel="offline-resource"> which status seems to be quite foggy as well.

Could you point me to some example of doing this (C++ or Javascript are both fine with me), please?

Thank you,

Matěj
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to