You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(originalETagis not null&&_descriptorsMap.TryGetValue((asset.Route,originalETag),outoriginalAsset))
46
+
{
47
+
asset=originalAsset;
48
+
}
49
+
else
50
+
{
51
+
Debug.Assert(originalETag!=null,$"The static asset descriptor {asset.Route} - {asset.AssetPath} does not have an original-resource property.");
52
+
Debug.Assert(originalAsset!=null,$"The static asset descriptor {asset.Route} - {asset.AssetPath} has an original-resource property that does not match any known static asset descriptor.");
53
+
}
39
54
}
40
55
41
56
builder.RequestDelegate=async context =>
@@ -57,6 +72,57 @@ public void AttachRuntimePatching(EndpointBuilder builder)
$"The static asset descriptor {descriptor.Route} - {descriptor.AssetPath} has an ETag response header that is already registered in the map. This should not happen, as the ETag should be unique for each static asset.");
122
+
}
123
+
}
124
+
}
125
+
60
126
internalstaticstringGetETag(IFileInfofileInfo)
61
127
{
62
128
usingvarstream=fileInfo.CreateReadStream();
@@ -114,10 +180,7 @@ public Task SendFileAsync(string path, long offset, long? count, CancellationTok
0 commit comments