"
ASP.NET (snapshot 2017) Microsoft documentation and samples

ASP.NET Core Response Caching Sample (ASP.NET Core 2.x)

This sample illustrates the usage of ASP.NET Core (xref:)Response Caching Middleware with ASP.NET Core 2.x. For the ASP.NET Core 1.x sample, see ASP.NET Core Response Caching Sample (ASP.NET Core 1.x).

The application sends a Hello World! message and the current time along with a Cache-Control header to configure caching behavior. The application also sends a Vary header to configure the cache to serve the response only if the Accept-Encoding header of subsequent requests matches that from the original request.

When running the sample, a response is served from cache when possible and stored for up to 10 seconds.





Comments ( )
<00>  <01>  <02>  <03>  <04>  <05>  <06>  <07>  <08>  <09>  <10>  <11>  <12>  <13>  <14>  <15>  <16>  <17
Link to this page: http://www.vb-net.com/AspNet-DocAndSamples-2017/aspnetcore/performance/caching/middleware/samples/2.x/README.htm
<SITEMAP>  <MVC>  <ASP>  <NET>  <DATA>  <KIOSK>  <FLEX>  <SQL>  <NOTES>  <LINUX>  <MONO>  <FREEWARE>  <DOCS>  <ENG>  <MAIL ME>  <ABOUT ME>  < THANKS ME>