1
0
mirror of https://api.glitch.com/git/presence-button synced 2024-12-04 19:07:29 +00:00

😼🎁 Checkpoint

./server.js:933874/26929
./views/index.html:933874/4193
This commit is contained in:
Glitch (presence-button) 2020-05-09 19:09:18 +00:00
parent c94c74a13a
commit b4b29bedfc
2 changed files with 3 additions and 6 deletions

View File

@ -9,7 +9,7 @@ var lastClosed = new Date("1970-01-01");
const fs = require("fs");
const db = "./.data/data.json";
const closingTimeout = 5 * 60 * 1000; // 5 mins
const defaultClosingTimeout = 5 * 60 * 1000; // 5 mins
try {
var content = fs.readFileSync(db, "utf8");
@ -41,6 +41,7 @@ app.get("/", (req, res) => {
});
app.get("/img", (req, res) => {
const closingTimeout = (typeof req.query.closingTimeout !== 'undefined')? req.query.closingTimeout : defaultClosingTimeout;
res.header(
"Cache-Control",
"no-store, no-cache, must-revalidate, proxy-revalidate"

View File

@ -55,11 +55,7 @@
</p>
</main>
<footer>
Made with <a href="https://glitch.com">Glitch</a>! Icons made by
<a href="https://www.flaticon.com/authors/smashicons">Smashicons</a> from
<a href="https://www.flaticon.com/">www.flaticon.com</a>
</footer>
<footer>Made with <a href="https://glitch.com">Glitch</a>!</footer>
<!-- include the Glitch button to show what the webpage is about and
to make it easier for folks to view source and remix -->