Skip to content

Commit 0d65dc6

Browse files
yringlerRick-Andersonscottaddie
authored
add to 3.x section , fix spelling (#18298)
* add to 3.x section , fix spelling * Update aspnetcore/performance/caching/middleware.md Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com> Co-authored-by: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
1 parent 1365bdc commit 0d65dc6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

aspnetcore/performance/caching/middleware.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ The sample app adds headers to control caching on subsequent requests:
3838

3939
[!code-csharp[](middleware/samples_snippets/3.x/AddHeaders.cs)]
4040

41-
<!-- make same change here once approved -->
41+
The preceding headers are not written to the response and are overridden when a controller, action, or Razor Page:
42+
43+
* Has a [[ResponseCache]](xref:Microsoft.AspNetCore.Mvc.ResponseCacheAttribute) attribute. This applies even if a property isn't set. For example, omitting the [VaryByHeader](/aspnet/core/performance/caching/response#vary) property will cause the corresponding header to be removed from the response.
4244

4345
Response Caching Middleware only caches server responses that result in a 200 (OK) status code. Any other responses, including [error pages](xref:fundamentals/error-handling), are ignored by the middleware.
4446

@@ -180,7 +182,7 @@ The sample app adds headers to control caching on subsequent requests:
180182

181183
[!code-csharp[](middleware/samples_snippets/2.x/AddHeaders.cs)]
182184

183-
The preceding headers are not written to the response and are overriden when a controller, action, or Razor Page:
185+
The preceding headers are not written to the response and are overridden when a controller, action, or Razor Page:
184186

185187
* Has a [[ResponseCache]](xref:Microsoft.AspNetCore.Mvc.ResponseCacheAttribute) attribute. This applies even if a property isn't set. For example, omitting the [VaryByHeader] property (/aspnet/core/performance/caching/response#vary) will cause the corresponding header to be removed from the response.
186188

0 commit comments

Comments
 (0)