-
Notifications
You must be signed in to change notification settings - Fork 21
Add cache control on blobs in public containers #663
Conversation
src/NuGet.Services.Validation.Orchestrator/ValidationPackageFileService.cs
Outdated
Show resolved
Hide resolved
|| !string.Equals(blobProperties.CacheControl, CoreConstants.DefaultCacheControl, StringComparison.OrdinalIgnoreCase)) | ||
{ | ||
blobProperties.CacheControl = CoreConstants.DefaultCacheControl; | ||
return await Task.FromResult(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we just return true
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The contract expects the delegate to return a task, it can be run synchronously but I don't like to have intellisense warnings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As spoken about offline, let's adjust the tests rather than disabling them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure to re-enable tests before merging
Updates the legacy search functional tests to always use the configured URL. This also requires that the configured URL supports HTTPS. This change won't take effect until this is merged into the master branch. Depends on [NuGetDeployment#1137](https://nuget.visualstudio.com/NuGetMicrosoft/_git/NuGetDeployment/pullrequest/1137?_a=overview) Part of [Engineering#2686](https://github.com/nuget/engineering/issues/2686)
Updates the legacy search functional tests to always use the configured URL. This also requires that the configured URL supports HTTPS. This change won't take effect until this is merged into the master branch. Depends on [NuGetDeployment#1137](https://nuget.visualstudio.com/NuGetMicrosoft/_git/NuGetDeployment/pullrequest/1137?_a=overview) Part of [Engineering#2686](https://github.com/nuget/engineering/issues/2686)
Fixes NuGet/NuGetGallery#6321