
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
chrome-remote-cache
Advanced tools
#chrome-remote-cache
Caching system for chrome devtools protocol
Act as an external cache for chrome
import Devtools from "@u4/chrome-remote-interface";
import ChromeRemoteCache from "./ChromeRemoteCache";
import CacheManagerRedisTTL from "./CacheManager";
const delay = (ms: number) => new Promise((r) => setTimeout(r, ms));
async function testAll() {
const devtools = new Devtools();
const page = await devtools.connectNewPage();
const cm = new CacheManagerRedisTTL(new Redis());
const remoteCache = new ChromeRemoteCache(cm);
remoteCache.cache('www.google.com/maps/dir///');
remoteCache.cache('www.google.com/maps/vt/');
remoteCache.cache('www.google.com/images/');
remoteCache.cache('www.google.com/js/');
remoteCache.cache('www.google.com/maps/preview/pwa/manifest');
// www.gstatic.com, maps.gstatic.com, fonts.gstatic.com
remoteCache.cache('*.gstatic.com');
remoteCache.cache('fonts.googleapis.com');
remoteCache.cache('lh3.googleusercontent.com');
remoteCache.ignore('ogs.google.com');
remoteCache.ignore('play.google.com');
remoteCache.block('tpc.googlesyndication.com/simgad/');
remoteCache.ignore('tpc.googlesyndication.com/simgad/');
remoteCache.block('www.google.com/gen_204');
remoteCache.ignore('www.google.com/gen_204');
remoteCache.block('www.google.com/maps/preview/log204');
remoteCache.ignore('www.google.com/maps/preview/log204');
await remoteCache.register(page);
await page.Page.navigate({ url: 'https://www.google.com/maps/'});
await delay(7000);
console.log();
// display cache usage
const {cache, pt} = remoteCache.getStats();
console.log('cache:', cache.toString(true));
console.log('passt:', pt.toString(true));
console.log();
console.log(`cache efficency: ${(remoteCache.efficency*100).toFixed(1)}%`);
}
testAll();
FAQs
Caching system for chrome devtools protocol
We found that chrome-remote-cache demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.