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

@@ -33,8 +33,8 @@ export function readController (router, controller, overrides = []) {
method = method.toLowerCase();
// all get routes with mandatory or optional authentication
if (method === 'get' && authMiddlewareIndex !== -1) {
// disable caching for all routes with mandatory or optional authentication
if (authMiddlewareIndex !== -1) {
middlewares.unshift(disableCache);
}