mirror of
https://github.com/Xahau/Validation-Ledger-Tx-Store-to-xPOP.git
synced 2025-11-30 00:25:50 +00:00
Add no-cache headers to frontpage
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user