https://discord.umbraco.com logo
#news
Title
# news
a

aaronsadleruk

06/27/2022, 10:10 PM
New Blog Post: Dynamic WebP Images in #Umbraco V10 https://umbhost.net/blog/2022/06/dynamic-webp-images-in-umbraco-v10
c

codesharepaul

06/28/2022, 5:55 AM
Hi mate. Please can you add the namespaces to your article?
a

aaronsadleruk

06/28/2022, 8:00 AM
@codesharepaul for the Middleware?
c

codesharepaul

06/28/2022, 8:01 AM
Either of the samples mate if possible please
a

aaronsadleruk

06/28/2022, 8:03 AM
I've updated the Middleware one, the other two bits shouldn't need any additional namespaces (other than calling the middleware class)
c

codesharepaul

06/28/2022, 8:14 AM
Brill thanks mate. Also I notice you talk about the startup.cs. Hasn’t that gone now from .net 6 web apps? I could be wrong but I thought it was all in the program.cs now
a

aaronsadleruk

06/28/2022, 8:15 AM
Has it? This site was upgraded from V9 and the instructions didn't say to replace / remove it 😕
c

codesharepaul

06/28/2022, 8:42 AM
Yeah it's been unified into program.cs It's understandable that it is still there if you do an upgrade. https://docs.microsoft.com/en-us/aspnet/core/migration/50-to-60?view=aspnetcore-6.0&tabs=visual-studio#new-hosting-model
a

aaronsadleruk

06/28/2022, 8:43 AM
I've updated the example to include a vary by header to the response
c

codesharepaul

06/28/2022, 8:46 AM
Cheers mate, I really appreciate you writing the blog post so we as a community can benefit from your research
a

aaronsadleruk

06/28/2022, 8:47 AM
I'll take a look and see what's needed to update my site, however the example code should be useable with minimal tweaks 🙂
@codesharepaul I've just checked a fresh install of V10 and it still uses the startup.cs 😕
c

codesharepaul

06/28/2022, 8:52 AM
Ah, maybe we can feed it back. Let's start a discussion in the netcore channel on here.
n

Nik

06/29/2022, 8:32 AM
Startup is still valid in core6, but it has been removed from the boilerplate code. Adding it has no problems.