News for hackers. Stuff that matters.
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by Touche on Tuesday March 25, 2014 @03:44PM (#7468418)
Already has an option to disable the cache. Advanced settings.
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by tyleregeto on Tuesday March 25, 2014 @03:45PM (#7468428)
Thank you!

Edit: I can't find it. I see I can disable the cache completely, but that's not really what I want. Its nice to only disable it when the dev tools are open. I don't want to have to go to advance settings and clear it every time.

Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by Touche on Tuesday March 25, 2014 @04:33PM (#7468755)
Why specifically "when the dev tools are open"? That seems like an unusually specific request.
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by jordanlev on Tuesday March 25, 2014 @04:54PM (#7468893)
This is how Chrome DevTools do it (by default), and it's incredibly useful. When I'm just browsing websites I want the cache enabled, but when I'm working on a site (in which case I usually have the DevTools opened) I want the cache disabled. In fact, I now just open the DevTools when I want to temporarily disable caching -- because the keyboard shortcut is so ingrained it's a lot easier to do that then find the overall browser setting itself.
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by mcheely on Tuesday March 25, 2014 @05:11PM (#7468989)
Disabling the cache by default can be troublesome. I'd say it breaks the principle of least surprise - I wasn't aware of this behavior in Chrome, and it's a good thing I develop with Firefox, as I just resolved a bug that only manifested itself when bypassing the browser cache. If the browser cache had been linked to dev tools being open in my case, I probably would have ended up down some false causality rathole around dev tools.
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by mikeratcliffe on Wednesday March 26, 2014 @02:36PM (#7475380)
We implemented it that way so that we wouldn't have a never ending list of "the browser is slow when devtools are open" bugs.

We do plan on making the disable cache toggle more visible (probably with the other buttons at the top of the main panel) and making it very obvious that the cache is disabled.

When we have done that it would make sense to have the button remember state.

Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by Touche on Tuesday March 25, 2014 @04:56PM (#7468914)
I know that's how Chrome DevTools does it, but "because that's how Chrome DevTools does it" is not a good answer to the question "why specifically when the DevTools are open".
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by jordanlev on Wednesday March 26, 2014 @11:59AM (#7474277)
"How Chrome DevTools does it" was not my answer to the question, it was just the preamble. As mentioned, I much prefer to have caching disabled while I'm building or debugging sites (specifically: because I'm often changing the markup or the css or the javascript, and I want my most recent change to come through to the browser upon reload).
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by joesb on Tuesday March 25, 2014 @07:27PM (#7470095)
Because you don't want to disable caching of every other sites when you are not wearing your developer hat, just a "regular user surfing internet" hat.
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by extra88 on Wednesday March 26, 2014 @12:30AM (#7471604)
Sounds like a case for using separate Firefox profiles, one for each "hat."
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by joesb on Wednesday March 26, 2014 @04:16PM (#7476281)
Why do that when I can just press "F12"?
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by Touche on Wednesday March 26, 2014 @08:18AM (#7472860)
That's not how it works. It only disables the tab you are working in.
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by jordanlev on Wednesday March 26, 2014 @12:01PM (#7474300)
This is exactly the point -- when you're developing a site, you want caching disabled on that site, but then when you're browsing another site just as a regular surfer you do not want caching disabled. Since generally when you're working on a site, you have DevTools opened, and generally when you're just browsing the web you do not have DevTools open, this is very nice.
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by Touche on Wednesday March 26, 2014 @03:27PM (#7475835)
I disagree with this:

> when you're developing a site, you want caching disabled on that site

I don't know why you say that. I only want caching disabled if I'm debugging something I think might be caused by caching.