From 7aa74b20ff714f24164c5836615f19678c2154fc Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Fri, 26 Aug 2022 15:46:38 +0200 Subject: [PATCH] add timestamp to url --- apps/remix-ide/src/app/plugins/parser/code-parser.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/remix-ide/src/app/plugins/parser/code-parser.tsx b/apps/remix-ide/src/app/plugins/parser/code-parser.tsx index effdb3f66a..40e2381033 100644 --- a/apps/remix-ide/src/app/plugins/parser/code-parser.tsx +++ b/apps/remix-ide/src/app/plugins/parser/code-parser.tsx @@ -118,6 +118,8 @@ export class CodeParser extends Plugin { }) this.on('solidity', 'loadingCompiler', async (url) => { + // add timestamp to avoid caching + url = url + '?t=' + Date.now() this.compilerService.compiler.loadVersion(true, url) })