Skip to content

Commit

Permalink
no-cache for update request
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowseal committed Nov 12, 2024
1 parent 4cb8c01 commit 2a1764b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_updates.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a1764b

Please sign in to comment.