mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:07:08 +00:00
Do not cache Set-Cookie headers
This commit is contained in:
@@ -33,7 +33,9 @@ function saveResponse (res) {
|
|||||||
const cache = getCache(res);
|
const cache = getCache(res);
|
||||||
const req = res.req;
|
const req = res.req;
|
||||||
console.log(`Saving ETag: ${req.method} ${req.url} → ${etag}`);
|
console.log(`Saving ETag: ${req.method} ${req.url} → ${etag}`);
|
||||||
cache[req.url] = {etag, headers: res.getHeaders()};
|
const headers = res.getHeaders();
|
||||||
|
delete headers["set-cookie"];
|
||||||
|
cache[req.url] = {etag, headers};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user