Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oncachemiss = function(request) {
- var url = 'http://olivergoodman.com' + request.path + '?imdifferent';
- try {
- fetch(url, function(response) {
- response.data = response.data.replace(/www/g, "wub");
- request.send(response);
- });
- } catch (e) {
- say('error:', e.message);
- }
- say("sent:", request);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement