Thanks to Christian, we now know the error is NS_ERROR_CACHE_KEY_NOT_FOUND. As I am pretty sure I am using the right key, I presume creating my own cache session to obtain the entry descriptors is not the way to go.

It is definitely possible. What are you using as the client ID for createSession, and what storage policy?

For calling createSession, I am using "HTTP" as client ID. This is what is given to the cache visitor in entryInfo.clientID.
The storage policy is Components.interfaces.nsICache.STORE_ANYWHERE.

Then for calling the descriptor getter function (asyncOpenCacheEntry or openCacheEntry), I use the entryInfo.key as key and Components.interfaces.nsICache.ACCESS_READ as access mode.

/mig
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to