add basic test, disable etag on post routes as well, paypal ipn: prevent set headers after response error

This commit is contained in:
Matteo Pagliazzi
2020-04-17 14:50:09 +02:00
parent f757e645b7
commit 24e1bfdfba
4 changed files with 38 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ export function disableCache (req, res, next) {
res.header('Cache-Control', 'no-store');
// Remove the etag header when caching is disabled
// Unfortunately it's not possible to prevent the creation right now
// @TODO Unfortunately it's not possible to prevent the creation right now
// See this issue https://github.com/expressjs/express/issues/2472
onHeaders(res, function removeEtag () {
this.removeHeader('ETag');