forked from ddrilling/AsbCloudServer
remove static file serving for the current request path
This commit is contained in:
parent
93765544fe
commit
afccdafebc
@ -132,17 +132,6 @@ namespace AsbCloudWebApi
|
||||
app.UseDeveloperExceptionPage();
|
||||
}
|
||||
|
||||
app.UseDefaultFiles();
|
||||
app.UseStaticFiles(
|
||||
new StaticFileOptions
|
||||
{
|
||||
OnPrepareResponse = ctx =>
|
||||
{
|
||||
ctx.Context.Response.Headers.CacheControl = "public,max-age=2592000";
|
||||
ctx.Context.Response.Headers.Expires = System.DateTime.UtcNow.AddDays(10).ToString("R", System.Globalization.CultureInfo.InvariantCulture);
|
||||
}
|
||||
}
|
||||
);
|
||||
app.UseCors("ClientPermission");
|
||||
app.UseRouting();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user