Add no-cache headers to frontpage

This commit is contained in:
ZGrguric
2023-10-09 10:05:28 +02:00
parent 9388706405
commit 74bea2b5c7

View File

@@ -90,6 +90,10 @@ if (!wss) {
},
function renderHomepage(req, res, next) {
// res.setHeader('content-type', 'text/html')
res.setHeader('Cache-Control', 'no-store')
.setHeader('Pragma','no-cache')
.setHeader('Expires',0)
.setHeader('Surrogate-Control','no-store')
if (req.url === '' || req.url === '/') {
res.render('public_html/index.html', {
infraConfig: {