Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
/ NuGet.Jobs Public archive

Add cache control on blobs in public containers #663

Merged
merged 10 commits into from
Nov 9, 2018
Merged

Conversation

shishirx34
Copy link
Contributor

|| !string.Equals(blobProperties.CacheControl, CoreConstants.DefaultCacheControl, StringComparison.OrdinalIgnoreCase))
{
blobProperties.CacheControl = CoreConstants.DefaultCacheControl;
return await Task.FromResult(true);
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

@joelverhagen joelverhagen left a 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.

Copy link
Contributor

@loic-sharma loic-sharma left a 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

@shishirx34 shishirx34 merged commit 41d163c into dev Nov 9, 2018
@shishirx34 shishirx34 deleted the fix-cache-control branch November 9, 2018 21:50
joelverhagen pushed a commit that referenced this pull request Sep 27, 2019
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)
joelverhagen pushed a commit that referenced this pull request Oct 26, 2020
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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants