mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
set max-age to 0 when serving test specs
This commit is contained in:
parent
bb7ece7d7e
commit
43f75a54df
1 changed files with 4 additions and 0 deletions
|
@ -181,6 +181,10 @@ const minify = async (req, res) => {
|
|||
res.setHeader('expires', expiresDate.toUTCString());
|
||||
res.setHeader('cache-control', `max-age=${settings.maxAge}`);
|
||||
}
|
||||
|
||||
if (/tests\/frontend\/specs\//.test(filename)) {
|
||||
res.setHeader('cache-control', 'max-age=0');
|
||||
}
|
||||
}
|
||||
|
||||
if (!exists) {
|
||||
|
|
Loading…
Reference in a new issue