Skip to content

Instantly share code, notes, and snippets.

View amrutadotorg's full-sized avatar
😀
Enjoy yourself

Amruta.org amrutadotorg

😀
Enjoy yourself
View GitHub Profile
@KoolPal
KoolPal / cf-wp-cache-worker.js
Created April 21, 2020 12:39 — forked from brandomeniconi/cf-wp-cache-worker.js
Basic Cloudflare Worker that allows efficient page caching for Wordpress websites
// Version 1.4
const DAY_IN_SECONDS = 60*60*24;
const BLACKLISTED_URL_PARAMS = [
'fbclid', // Google Ads click Id
'gclid', // Facebook click Id
'msclkid', // Micorosft Ads Click Id
];
addEventListener('fetch', event => {