The problem is with FF cache - Firebug uses it to access the data
(i.e. response from given URL or a script file) in order to show it to
the user. However, given URL response doesn't have to be cached and
there is no way how to force the cache to store and keep every
response.
It has been already discussed here:
http://groups.google.com/group/mozilla.dev.platform/browse_thread/thread/477b92676b8ff2cb/43835e7ad5bb93db?lnk=gst&q=LOAD_BYPASS_LOCAL_CACHE_IF_BUSY
It looks like Firebug has to implement own cache and get the data from
it if the user wants to see it.
And here comes the problem.
How to effectively intercept all incoming (mainly text based) requests
bodies? After some analysis and searching it's obvious that there is
no simple solution for this. See e.g.
http://groups.google.com/group/mozilla.dev.tech.network/browse_thread/thread/f51892f8951b676/d325a4bb4ed4500d?lnk=gst&q=response+content#d325a4bb4ed4500d)
The only promising way is implementing own HTTP handler
(nsIHttpProtocolHandler) and wrap the existing one. This is heavy
artillery for such a simple-looking task - and I would like to be
missing some easier way.
Does anybody has better idea?
Honza