Why doesn't the caching?

for(var key in config.templaters){
(function(key,value){
fetch('templater/'+value,{
cache:'force cache'
}).then(function(response){
 return response.text();
}).then(function(response){
config.html[key]=response;
});
})(key,config.templaters[key]);
}

In the end we have a picture
5ccaf42899573521508610.jpeg
Why not cached these queries ?
March 20th 20 at 11:30
1 answer
March 20th 20 at 11:32
Solution
All these files are in the extension? If so, you're doing senseless garbage. And and so the files on disk, they are saved locally and loaded from disk just like any other cache.
Yes, they are locally on disk.
I basically ship them as like units.
In my understanding of this fetch are loading from the local area.
5ccbcbf9d6e80485915752.png
but I asked this question because I do not like this option and here's why
5ccbccd5c526d947087960.png - Vinnie.Kuh commented on March 20th 20 at 11:35
@Domenico27, well, for ~100ms you have everything loaded. And the fact that chrome writes downloaded for 1ms, so it is simply entered by default, there the loading time is not calculated. For 1 millisecond, nothing from the disk will not boot. - Reece_Mann commented on March 20th 20 at 11:38
@tara.Smi, And if this cache ? he immediately loaded or cache is loading from disk ? - Vinnie.Kuh commented on March 20th 20 at 11:41
@Domenico27, this is a boot disk you have in the first screenshot is even written. - Reece_Mann commented on March 20th 20 at 11:44

Find more questions by tags JavaScript