add fdm volumetric flow output caps
This commit is contained in:
parent
8a908cb373
commit
a26b1d6bef
9 changed files with 48 additions and 20 deletions
|
|
@ -127,16 +127,12 @@ async function redirectOr404(path) {
|
|||
}
|
||||
}
|
||||
|
||||
async function fromCacheOrNetwork(req, test) {
|
||||
async function fromCacheOrNetwork(req) {
|
||||
const cache = await caches.open(CACHE_VERSION);
|
||||
const hit = await cache.match(req, { ignoreSearch: true });
|
||||
if (hit) {
|
||||
// log(`hit: ${req.url}`);
|
||||
return hit;
|
||||
}
|
||||
if (test) {
|
||||
return test;
|
||||
}
|
||||
const net = await fetch_safe(req);
|
||||
cache.put(req, net.clone());
|
||||
log(`put: ${net.url}`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue