no-cache for update request

This commit is contained in:
Flowseal 2024-11-12 23:19:55 +03:00
parent 4cb8c01cda
commit 2a1764bf36

View File

@ -49,7 +49,7 @@ if "%~1"=="soft" (
:: Reading new version from github :: Reading new version from github
set "NEW_VERSION=" 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 ( if not defined NEW_VERSION (
echo Erorr reading new version echo Erorr reading new version
goto :EOF goto :EOF