Update MediaApplicationBuilderExtensions.cs
This commit is contained in:
@@ -12,10 +12,6 @@ public static class MediaApplicationBuilderExtensions
|
||||
OnPrepareResponse = ctx =>
|
||||
{
|
||||
ctx.Context.Response.Headers[HeaderNames.CacheControl] = "public, must-revalidate, max-age=" + (int)cacheDuration.TotalSeconds;
|
||||
},
|
||||
OnPrepareResponseAsync = async ctx =>
|
||||
{
|
||||
await Task.Delay(0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user