9
0
mirror of https://github.com/Lomanic/presence-button-web synced 2024-11-22 21:47:29 +00:00

🏓👨‍❤️‍💋‍👨 Checkpoint

./server.js:933874/714
This commit is contained in:
Glitch (hello-express) 2019-11-10 23:24:10 +00:00
parent d06a2675b6
commit 25cc30b57f

View File

@ -26,6 +26,9 @@ app.get("/", (req, res) => {
}); });
app.get("/img", (req, res) => { app.get("/img", (req, res) => {
res.header("Cache-Control", "no-store, no-cache, must-revalidate, proxy-revalidate");
res.header("Pragma", "no-cache");
res.header("Expires", "0");
if (fuzIsOpen && new Date() - closingTimeout < lastSeen) { if (fuzIsOpen && new Date() - closingTimeout < lastSeen) {
return res.sendFile(__dirname + "/views/open.svg"); // https://www.flaticon.com/free-icon/open_1234189, maybe try https://flaticons.net/customize.php?dir=Miscellaneous&icon=Open.png without attribution return res.sendFile(__dirname + "/views/open.svg"); // https://www.flaticon.com/free-icon/open_1234189, maybe try https://flaticons.net/customize.php?dir=Miscellaneous&icon=Open.png without attribution
} }