diff --git a/content-editor.js b/content-editor.js index 3ad4175..c14f26b 100644 --- a/content-editor.js +++ b/content-editor.js @@ -347,7 +347,7 @@ const server = http.createServer(async (req, res) => { // overwrite those changes. const contentHash = crypto.createHash('sha256').update(jsonData).digest('hex'); - res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' }); + res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8', 'Cache-Control': 'no-store' }); res.end(HTML(activeFile, jsonData, message, CSRF_TOKEN, FILE_LABELS, clientJs, contentHash, DEPLOY_VERSION)); }); diff --git a/scripts/deploy_to_stage_on_local.sh b/scripts/deploy_to_stage_on_local.sh index 0235b25..c0469d1 100755 --- a/scripts/deploy_to_stage_on_local.sh +++ b/scripts/deploy_to_stage_on_local.sh @@ -46,7 +46,7 @@ git push origin "${DEPLOY_BRANCH}" printf '3/4 Staging deploy (%s:%s)…\n' "${STAGE_HOST}" "${STAGE_PATH}" ssh -o BatchMode=yes -o ConnectTimeout=15 "${STAGE_HOST}" \ - "cd '${STAGE_PATH}' && git pull --ff-only origin '${DEPLOY_BRANCH}' && ./deploy.sh staging" + "cd '${STAGE_PATH}' && git pull --ff-only origin '${DEPLOY_BRANCH}' && ./deploy.sh staging && sudo systemctl restart mozdit-content-editor.service" printf '4/4 Staging smoke teszt (%s)…\n' "${STAGE_URL}" (