From 2a1764bf36d0aa33d286c734667259c55bc55b06 Mon Sep 17 00:00:00 2001 From: Flowseal Date: Tue, 12 Nov 2024 23:19:55 +0300 Subject: [PATCH] no-cache for update request --- check_updates.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_updates.bat b/check_updates.bat index 2def1d6..d0115c9 100644 --- a/check_updates.bat +++ b/check_updates.bat @@ -49,7 +49,7 @@ if "%~1"=="soft" ( :: Reading new version from github set "NEW_VERSION=" -for /f "delims=" %%A in ('powershell -command "(Invoke-WebRequest -Uri %GITHUB_URL% -TimeoutSec 5).Content" 2^>nul') do set "NEW_VERSION=%%A" +for /f "delims=" %%A in ('powershell -command "(Invoke-WebRequest -Uri %GITHUB_URL% -Headers @{\"Cache-Control\"=\"no-cache\"} -TimeoutSec 5).Content" 2^>nul') do set "NEW_VERSION=%%A" if not defined NEW_VERSION ( echo Erorr reading new version goto :EOF