diff --git a/routes/file.js b/routes/file.js index e856b27..2ef065b 100644 --- a/routes/file.js +++ b/routes/file.js @@ -5,9 +5,10 @@ const config = require('./../config') routes.get('/file/:identifier', async (req, res) => { // Uploads identifiers parsing, etc., are strictly handled by client-side JS at src/js/file.js + // Rendered page is persistently cached during production (its dynamic content is generated on client-side) return res.render('file', { config, utils, versions: utils.versionStrings - }) + }, !utils.devmode) }) module.exports = routes diff --git a/routes/player.js b/routes/player.js index 106c43c..077f091 100644 --- a/routes/player.js +++ b/routes/player.js @@ -5,9 +5,10 @@ const config = require('./../config') const playerHandler = async (req, res) => { // Uploads identifiers parsing, etc., are strictly handled by client-side JS at src/js/player.js + // Rendered page is persistently cached during production (its dynamic content is generated on client-side) return res.render('player', { config, utils, versions: utils.versionStrings - }) + }, !utils.devmode) } routes.get('/player/:identifier', playerHandler)