add fdm volumetric flow output caps

This commit is contained in:
Stewart Allen 2025-10-16 21:39:24 -04:00
commit a26b1d6bef
9 changed files with 48 additions and 20 deletions

View file

@ -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}`);