diff --git a/src/proxy/index.ts b/src/proxy/index.ts index bd012191d..c352cc4d0 100644 --- a/src/proxy/index.ts +++ b/src/proxy/index.ts @@ -11,6 +11,7 @@ import { import http, { ServerOptions } from 'http'; import https from 'https'; import * as urlUtils from '../utils/url'; +import scriptProcessor from '../processing/resources/script'; import { readSync as read } from 'read-file-relative'; import { respond500, respondWithJSON, fetchBody, addPreventCachingHeaders } from '../utils/http'; import { run as runRequestPipeline } from '../request-pipeline'; @@ -214,6 +215,7 @@ export default class Proxy extends Router { // API close (): void { + scriptProcessor.jsCache.reset() this.server1.close(); this.server2.close(); this._closeSockets();