mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
add basic test, disable etag on post routes as well, paypal ipn: prevent set headers after response error
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user