Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
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 CacheManager 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 CacheManager();
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(10000);
console.log();
const {cache, pt} = remoteCache.getStats();
console.log('cache:', cache);
console.log('passt:', pt);
console.log();
console.log();
}
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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.