Re: devtools re-fetching problem

Ehsan Akhgari <[email protected]> Fri, 18 Dec 2015 18:15:49 -0500
Newsgroups gmane.comp.mozilla.devel.netlib
Message-ID <[email protected]>
On 2015-12-18 4:56 PM, Tom Tromey wrote:
> I mentioned this on #necko the other day.
>
> We've had a "re-fetching" problem in devtools for a while now.
>
> The basic issue is that the platform drops the original text of some
> things, like style sheets.  (Instead just the parsed form is preserved.)
>
> So, in order to make some tools work with the source text, devtools
> re-fetches the sources.  However, this is sub-optimal -- maybe the
> sources have changed on the server, leading to confusing results.
>
> We were wondering if there was some way we could solve this problem.
>
> One idea we had is to always cache these things, in a way that would let
> the devtools retrieve them.  Is this possible?

We can't cache the resources if the web server tells us "don't cache 
this", so even if we use things such as LOAD_ONLY_FROM_CACHE, we still 
need a solution for that case.

> Or ... some other idea here.

How about forcing Gecko retain the original source text when devtools 
are being used?