ResponseCaching/samples/ResponseCachingSample
Nate McMaster 267f5134c8 Upgrade to VS 2017 2017-02-01 12:15:45 -08:00
..
README.md Update sample to add a README.md file 2016-11-15 16:35:01 -08:00
ResponseCachingSample.csproj Upgrade to VS 2017 2017-02-01 12:15:45 -08:00
Startup.cs Update sample to add a README.md file 2016-11-15 16:35:01 -08:00
web.config Clean up and update to post RTM 2016-07-27 10:41:38 -07:00

README.md

ASP.NET Core Response Caching Sample

This sample illustrates the usage of ASP.NET Core response caching middleware. 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 will be served from cache when possible and will be stored for up to 10 seconds.