From 16692fc75c1bc194b7bfde24d9cb95d6c1cb9551 Mon Sep 17 00:00:00 2001 From: Piotr Puszkiewicz Date: Tue, 9 Aug 2016 02:41:12 -0700 Subject: [PATCH] Remove CDN caching from version files --- scripts/obtain/dotnet-install.ps1 | 5 +++-- scripts/obtain/dotnet-install.sh | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/obtain/dotnet-install.ps1 b/scripts/obtain/dotnet-install.ps1 index 7823d80a5..291623c1c 100644 --- a/scripts/obtain/dotnet-install.ps1 +++ b/scripts/obtain/dotnet-install.ps1 @@ -59,6 +59,7 @@ param( [switch]$DryRun, [switch]$NoPath, [string]$AzureFeed="https://dotnetcli.azureedge.net/dotnet" + [string]$UncachedFeed="https://dotnetcli.azureedge.net/dotnet" ) Set-StrictMode -Version Latest @@ -120,10 +121,10 @@ function Get-Latest-Version-Info([string]$AzureFeed, [string]$AzureChannel, [str $VersionFileUrl = $null if ($SharedRuntime) { - $VersionFileUrl = "$AzureFeed/$AzureChannel/dnvm/latest.sharedfx.win.$CLIArchitecture.version" + $VersionFileUrl = "$UncachedFeed/$AzureChannel/dnvm/latest.sharedfx.win.$CLIArchitecture.version" } else { - $VersionFileUrl = "$AzureFeed/Sdk/$AzureChannel/latest.version" + $VersionFileUrl = "$UncachedFeed/Sdk/$AzureChannel/latest.version" } $Response = Invoke-WebRequest -UseBasicParsing $VersionFileUrl diff --git a/scripts/obtain/dotnet-install.sh b/scripts/obtain/dotnet-install.sh index 71bbb89cb..3abfb6772 100755 --- a/scripts/obtain/dotnet-install.sh +++ b/scripts/obtain/dotnet-install.sh @@ -286,9 +286,9 @@ get_latest_version_info() { local version_file_url=null 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 - version_file_url="$azure_feed/Sdk/$azure_channel/latest.version" + version_file_url="$uncached_feed/Sdk/$azure_channel/latest.version" fi say_verbose "get_latest_version_info: latest url: $version_file_url" @@ -557,6 +557,7 @@ debug_symbols=false dry_run=false no_path=false azure_feed="https://dotnetcli.azureedge.net/dotnet" +uncached_feed="https://dotnetcli.blob.core.windows.net/dotnet" verbose=false shared_runtime=false