diff --git a/ghost/portal/scripts/dev-mode.js b/ghost/portal/scripts/dev-mode.js index 2a66fa12c6..20246e7ed0 100644 --- a/ghost/portal/scripts/dev-mode.js +++ b/ghost/portal/scripts/dev-mode.js @@ -189,7 +189,20 @@ function watchFiles() { function startDevServer() { const server = http.createServer((request, response) => { - return handler(request, response); + return handler(request, response, { + rewrites: [ + {source: '/portal', destination: 'umd/portal.min.js'} + ], + headers: [ + { + source: '**', + headers: [{ + key: 'Cache-Control', + value: 'no-cache' + }] + } + ] + }); }); server.listen(port, () => {