Disable admin site caching
This commit is contained in:
@@ -265,6 +265,13 @@ async function start(){
|
||||
}
|
||||
})
|
||||
|
||||
app.use((_req, res, next) => {
|
||||
res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate')
|
||||
res.setHeader('Pragma', 'no-cache')
|
||||
res.setHeader('Expires', '0')
|
||||
next()
|
||||
})
|
||||
|
||||
app.use(express.json({ limit: '5mb' }))
|
||||
app.use('/uploads', express.static(UPLOADS_DIR))
|
||||
app.use('/admin/data/uploads', express.static(UPLOADS_DIR))
|
||||
|
||||
Reference in New Issue
Block a user