From 270d4546582971a8c135bdcc439885e9ed7f1891 Mon Sep 17 00:00:00 2001 From: Thorin-Oakenpants Date: Mon, 21 May 2018 01:46:21 +0000 Subject: [PATCH] Updated 4.2.4 Header Editor (markdown) --- 4.2.4-Header-Editor.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/4.2.4-Header-Editor.md b/4.2.4-Header-Editor.md index 84eafa2..8e70d8b 100644 --- a/4.2.4-Header-Editor.md +++ b/4.2.4-Header-Editor.md @@ -8,10 +8,18 @@ Header Editor is an extension that allows you to modify the request header and r * Note: if you disable disk *and* memory cache, this is not required * Test: https://httpbin.org/ * Test: http://lucb1e.com/rp/cookielesscookies/ + * number of visits should never be more than 2 + * note: the site uses IP and UA to create your unique ID, so to test, do not change these ``` Name: remove all ETag's Type: modify the Response header -Execute type: normal - Header name: etag -``` \ No newline at end of file +Execute type: Custom function +``` + +Code: +```js +for (let a in val) { + if (val[a].name.toLowerCase() === 'etag') { val[a].value = ''; } +} +```