- Published:June 25th, 2010
- Comments:17 Comments
- Category:Firebug, Planet Mozilla
Another new feature that made it into Firebug 1.6a14 (available later today) is tracking HTTP responses coming directly from Firefox BFCache (back/forward cache) and displaying them within the Net panel.
The purpose of this cache (note that this is different from the standard HTTP cache) is to make navigation in the browser history fast.
The consequence of using the BFCache is that there is no HTTP activity (that's why it's fast) and so, till now these requests wasn't displayed in the Net panel.
While I think it was actually correct (since purpose of the Net panel is to monitor HTTP activity), it was confusing sometimes as the Net pane was empty even if it was quite obvious that there need to be some requests.
So, the feature is optional (on by default).
All responses coming from the BFCache are displayed in gray. See the next screen-shot that shows what happened when I pressed the Back button.
One thing I am still not sure about is whether the gray color is enough to distinguish BFCache responses from regular HTTP responses...
Another way how to differentiate these two different responses is depicted here (just a mock-up):
BFCache response could be hidden behind an extra entry that clearly depicts that it's BFCache related. This would make the Timeline column a bit hard to read since there would be empty rows in the waterfall diagram, but perhaps nobody is interested in that if it doesn't come from the server and there is not HTTP communication anyway.
What do you think?
Any tips how to cut the Gordian knot?
17 Comments
This might stop a quite annoying behaviour of Firebug. Maybe not. Often I have firebug minimised or off when I load a page. I might navigate back to a page I've already loaded, open Firebug and there's no net panel content. I guess Firebug needs to have been on when the page was initially loaded to have 'recorded' net data that it can show when browsing back to that page? Nuts. I do wish that Firebug performed well enough to be constantly on for all tabs. Oh well.
[...] Net panel reports BFCache hits [...]
@pd: Yes, Firebug needs to be initially loaded. You could solve this by right clicking on the Firebug icon (in Firefox status bar) and picking "On for All Web Pages". Firebug should be always on and so Net panel always showing all requests.
I like the idea of displaying the request in grey, as it indicates a somewhat "inactive" request.
You could _additionally_ display an icon representing BFCache. The icon should be between the [+] button and the "GET ..." text.
The image title should be set, so when hovering over this icon, "Read from BFCache" could be displayed in a tooltip.
Sebastian
I like the idea with the icon. Do you know somebody who could donate the icon artwork?
Honza
I also like the idea with the icon. (The first comment was not from me. 🙂 )
This could probably also cover another problem Honza and I were discussing about lately at http://code.google.com/p/fbug/issues/detail?id=1208.
General question is:
Should requests fetched from the normal cache (HTTP status 304 Not Modified) be also be shown different to normal requests? And if yes, how?
So maybe a symbol would be enough here. What do you think?
If there is no communication with the server, why a "200 OK" in the timeline?
@Steven Roussey: That's the status of the page when it was loaded the first time.
Hi Honza,
How can i translate firebug to my language?
@S.Ali Sadattalab: Firebug is using BabelZilla for managing translations. See more info here: http://getfirebug.com/wiki/index.php/Localization
I do wish that Firebug performed well enough to be constantly on for all tabs.
I might navigate back to a page I've already loaded, open Firebug and there's no net panel content.
betterie: Right click on the Firebug icon in Fx status bar and pick 'On for All Web Pages' - Firebug will be on by default (if not black listed).
How can i translate firebug to my language?
Register as a translator at http://www.babelzilla.org and join Firebug translation team: http://www.babelzilla.org/index.php?option=com_wts&Itemid=203&type=show&extension=4387
[...] Net panel reports BFCache hits [...]
Great article, I think you covered everything there. . . I would say freelancing is quite hard especially if you are not used to working on your own, can be quite hard to motivate yourself also. . . we all know what it is like to stare at the monitor.