res.header -> res.set

This commit is contained in:
Matteo Pagliazzi 2020-04-17 14:57:53 +02:00
parent 24e1bfdfba
commit cda5c6fbb0

View file

@ -1,7 +1,7 @@
import onHeaders from 'on-headers';
export function disableCache (req, res, next) {
res.header('Cache-Control', 'no-store');
res.set('Cache-Control', 'no-store');
// Remove the etag header when caching is disabled
// @TODO Unfortunately it's not possible to prevent the creation right now