diff --git a/AsbCloudWebApi/Startup.cs b/AsbCloudWebApi/Startup.cs index 8046d92c..8e671ca2 100644 --- a/AsbCloudWebApi/Startup.cs +++ b/AsbCloudWebApi/Startup.cs @@ -107,7 +107,16 @@ namespace AsbCloudWebApi //app.UseHttpsRedirection(); app.UseDefaultFiles(); - app.UseStaticFiles(); + app.UseStaticFiles( + //new StaticFileOptions + //{ + // OnPrepareResponse = ctx => + // { + // ctx.Context.Response.Headers.CacheControl = "public,max-age=2592000"; + // ctx.Context.Response.Headers.Expires = DateTime.UtcNow.AddDays(10).ToString("R", CultureInfo.InvariantCulture); + // } + //} + ); app.UseCors("ClientPermission"); app.UseRouting();