Skip to content

Commit 3c60419

Browse files
committed
🐛 Disable caching to provide updates asap
1 parent b049123 commit 3c60419

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/server/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ const app = express()
77
const http = createServer(app)
88
const port = 1616
99

10+
app.use((req, res, next) => {
11+
res.set('Cache-Control', 'no-store')
12+
next()
13+
})
14+
1015
app.use("/game", express.static("src/client/game", { index: "game.html" }))
1116
app.use("/play", express.static("src/client/play", { index: "play.html" }))
1217
app.use("/room", express.static("src/client/room", { index: "room.html" }))

0 commit comments

Comments
 (0)