diff --git a/backend/package.json b/backend/package.json index 4e69479..2399c89 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.89", + "version": "2.14.90", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/index.js b/backend/src/core/proxy-utils/index.js index 4b48c5f..1a2c737 100644 --- a/backend/src/core/proxy-utils/index.js +++ b/backend/src/core/proxy-utils/index.js @@ -71,7 +71,12 @@ async function process(proxies, operators = [], targetPlatform, source) { if (item.type.indexOf('Script') !== -1) { const { mode, content } = item.args; if (mode === 'link') { - const url = content; + let noCache; + let url = content; + if (url.endsWith('#noCache')) { + url = url.replace(/#noCache$/, ''); + noCache = true; + } // extract link arguments const rawArgs = url.split('#'); if (rawArgs.length > 1) { @@ -93,7 +98,9 @@ async function process(proxies, operators = [], targetPlatform, source) { // if this is a remote script, download it try { - script = await download(url.split('#')[0]); + script = await download( + `${url.split('#')[0]}${noCache ? '#noCache' : ''}`, + ); // $.info(`Script loaded: >>>\n ${script}`); } catch (err) { $.error(