Two additional middleware components were released with ASP.NET Core 1.1, one for response caching and the other for response compression. Learn about them in this video.
- [Instructor] Two additional middleware components in 1.1…are used for response caching and response compression.…Let's look at response caching first.…It requires the Microsoft.AspNetCore.Response…caching package,…and its usage is very simple.…Add services.AddResponseCaching in configure services,…and there are some options available.…Add app.UseResponseCaching in the configure method,…and those are both, of course, in the startup class.…
And then use the ResponseCache controller attribute.…The three options available to set…are UseCaseSensitivePaths, and that defaults to false,…the maximum body size,…and it defaults to 64 megabytes,…and the size limit for the cache,…and that defaults to a hundred megabytes.…There is a slight modification in 2.0,…and that is where you configure…the response caching middleware.…So let's look at this in code.…
So I am in the startup class…in the configure services method.…And on line 66,…I'm adding response caching with the default option set.…I have an example here of how you would customize it…
- Running and debugging ASP.NET Core applications
- Pros and cons of migrating existing applications to ASP.NET Core.
- Built-in dependency injection
- Environment awareness and app configuration
- Web host configuration and SSL
- View components invoked as tag helpers
- Configuration and logging
- Using Razor Pages
- Web API improvements
- Support for creating GDPR-compliant applications
Skill Level Intermediate
Entity Framework Core Essential Training: 1with Phil Japikse3h 20m Intermediate
Use the exercise files3m 37s
1. Get to Know .NET Core
2. ASP.NET Core 1.0
3. ASP.NET Core 1.1
4. ASP.NET Core 2.0
5. ASP.NET Core 2.1
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.