From a923f3870e8aee7c65df63f9447d56e3ded8eb38 Mon Sep 17 00:00:00 2001 From: Farhad Zamani <48260228+farhadzm@users.noreply.github.com> Date: Tue, 4 Apr 2023 22:57:39 +0330 Subject: [PATCH] Fix middleware order `UseImageResizer` should be before `UseStaticFiles` --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8ce9bfb..2610ac4 100644 --- a/README.md +++ b/README.md @@ -78,8 +78,9 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env) { //... // services.AddSingleton(_ => new PhysicalFileProvider(_env.WebRootPath ?? _env.ContentRootPath)); - app.UseStaticFiles(); - app.UseImageResizer(); + app.UseImageResizer(); + app.UseStaticFiles(); + //... } ```