mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04: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('expires', expiresDate.toUTCString());
|
||||||
res.setHeader('cache-control', `max-age=${settings.maxAge}`);
|
res.setHeader('cache-control', `max-age=${settings.maxAge}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (/tests\/frontend\/specs\//.test(filename)) {
|
||||||
|
res.setHeader('cache-control', 'max-age=0');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!exists) {
|
if (!exists) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue