Skip to content

Instantly share code, notes, and snippets.

View amritk's full-sized avatar
🏒

Amrit Kahlon amritk

🏒
View GitHub Profile
var cleanUp = {
domains: [],
getDomains: async function() {
let results = null;
let page = 0
do {
const response = await fetch(`https://prerender.io/api/cached-pages?page=${page}&pageSize=1000`);
const json = await response.json();