mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-21 21:28:52 +00:00
res.header -> res.set
This commit is contained in:
parent
24e1bfdfba
commit
cda5c6fbb0
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue