Remove CDN caching from version files
This commit is contained in:
parent
5f60c2cf37
commit
16692fc75c
2 changed files with 6 additions and 4 deletions
5
scripts/obtain/dotnet-install.ps1
vendored
5
scripts/obtain/dotnet-install.ps1
vendored
|
@ -59,6 +59,7 @@ param(
|
||||||
[switch]$DryRun,
|
[switch]$DryRun,
|
||||||
[switch]$NoPath,
|
[switch]$NoPath,
|
||||||
[string]$AzureFeed="https://dotnetcli.azureedge.net/dotnet"
|
[string]$AzureFeed="https://dotnetcli.azureedge.net/dotnet"
|
||||||
|
[string]$UncachedFeed="https://dotnetcli.azureedge.net/dotnet"
|
||||||
)
|
)
|
||||||
|
|
||||||
Set-StrictMode -Version Latest
|
Set-StrictMode -Version Latest
|
||||||
|
@ -120,10 +121,10 @@ function Get-Latest-Version-Info([string]$AzureFeed, [string]$AzureChannel, [str
|
||||||
|
|
||||||
$VersionFileUrl = $null
|
$VersionFileUrl = $null
|
||||||
if ($SharedRuntime) {
|
if ($SharedRuntime) {
|
||||||
$VersionFileUrl = "$AzureFeed/$AzureChannel/dnvm/latest.sharedfx.win.$CLIArchitecture.version"
|
$VersionFileUrl = "$UncachedFeed/$AzureChannel/dnvm/latest.sharedfx.win.$CLIArchitecture.version"
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$VersionFileUrl = "$AzureFeed/Sdk/$AzureChannel/latest.version"
|
$VersionFileUrl = "$UncachedFeed/Sdk/$AzureChannel/latest.version"
|
||||||
}
|
}
|
||||||
|
|
||||||
$Response = Invoke-WebRequest -UseBasicParsing $VersionFileUrl
|
$Response = Invoke-WebRequest -UseBasicParsing $VersionFileUrl
|
||||||
|
|
5
scripts/obtain/dotnet-install.sh
vendored
5
scripts/obtain/dotnet-install.sh
vendored
|
@ -286,9 +286,9 @@ get_latest_version_info() {
|
||||||
|
|
||||||
local version_file_url=null
|
local version_file_url=null
|
||||||
if [ "$shared_runtime" = true ]; then
|
if [ "$shared_runtime" = true ]; then
|
||||||
version_file_url="$azure_feed/$azure_channel/dnvm/latest.sharedfx.$osname.$normalized_architecture.version"
|
version_file_url="$uncached_feed/$azure_channel/dnvm/latest.sharedfx.$osname.$normalized_architecture.version"
|
||||||
else
|
else
|
||||||
version_file_url="$azure_feed/Sdk/$azure_channel/latest.version"
|
version_file_url="$uncached_feed/Sdk/$azure_channel/latest.version"
|
||||||
fi
|
fi
|
||||||
say_verbose "get_latest_version_info: latest url: $version_file_url"
|
say_verbose "get_latest_version_info: latest url: $version_file_url"
|
||||||
|
|
||||||
|
@ -557,6 +557,7 @@ debug_symbols=false
|
||||||
dry_run=false
|
dry_run=false
|
||||||
no_path=false
|
no_path=false
|
||||||
azure_feed="https://dotnetcli.azureedge.net/dotnet"
|
azure_feed="https://dotnetcli.azureedge.net/dotnet"
|
||||||
|
uncached_feed="https://dotnetcli.blob.core.windows.net/dotnet"
|
||||||
verbose=false
|
verbose=false
|
||||||
shared_runtime=false
|
shared_runtime=false
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue