From 3bac2826cf16f982caeacc7214188ab8dc5d7c97 Mon Sep 17 00:00:00 2001 From: rr13k <45162461+rr13k@users.noreply.github.com> Date: Fri, 11 Feb 2022 20:42:57 +0800 Subject: [PATCH] fix #2738 (#2739) Co-authored-by: zhouyuan63 --- src/proxy/index.ts | 2 ++ 1 file changed, 2 insertions(+) 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();