On Jun 6, 7:19 pm, jomaras <[email protected]> wrote:
> Thanks for the response, but
> FirebugContext.sourceCache.load(urlToTheFile) throws an exception when
> trying to load a non-text file: "The resource from this URL is not
> text"
You need to customize Firebug caching rules and force it to cache even
images that are not cached by default (to safe memory).

There are two ways how to do that:
1) Firebug.TabCacheModel.addListener: register a listener into the
TabCacheModel and implement shouldCacheRequest(request) method. By
checking request.contentType and returning true for your mime-type you
can make the response 'cacheable'.

2) Specify additional 'cacheable' mime-types in
extensions.firebug.cache.mimeTypes preference.

As soon as your mimetype is cached, try the
context.sourceCache.load(urlToTheFile); again.

Honza

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.

Reply via email to