4 ms·
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 a
by tyleregeto 13y ago
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.
- Touche 13y agoWhy specifically "when the dev tools are open"? That seems like an unusually specific request.
- jordanlev 13y agoThis 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.
- Touche 13y agoI 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".
- joesb 13y agoBecause 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.
- Touche 13y agoThat's not how it works. It only disables the tab you are working in.
- jordanlev 13y agoThis 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.
- Touche 13y agoI 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.
- extra88 13y agoSounds like a case for using separate Firefox profiles, one for each "hat."
- joesb 13y agoWhy do that when I can just press "F12"?
- jordanlev 13y ago"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).
- mcheely 13y agoDisabling 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.
- mikeratcliffe 13y agoWe 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.