Skip to content

Commit efa9840

Browse files
Apply suggestions from code review
CR nits which are very slightly clarifying. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent c7133ae commit efa9840

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

xml/System.Web/HttpCacheVaryByHeaders.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<format type="text/markdown"><![CDATA[
2222
2323
## Remarks
24-
The <xref:System.Web.HttpCachePolicy.VaryByHeaders%2A> property identifies which request header parameters ASP.NET uses to uniquely identify a variation of the response when there are multiple cached responses for a resource. This is useful when a response depends on a set of client inputs, such as headers or parameters. In this way, `VaryByHeaders` lets the output cache store and serve the appropriate representation of a resource for a given request.
24+
The <xref:System.Web.HttpCachePolicy.VaryByHeaders%2A> property identifies which request headers ASP.NET uses to uniquely identify a variation of the response when there are multiple cached responses for a resource. This is useful when a response depends on a set of request headers. In this way, `VaryByHeaders` lets the output cache store and serve the appropriate representation of a resource for a given request.
2525
2626
> [!IMPORTANT]
2727
> Output caching is a performance optimization feature. The `VaryBy` settings are designed to cache alternate representations of a resource based on request characteristics; they are not designed to isolate audiences or classes of content. Do not rely on cache variation to separate personalized, tenant-specific, authorization-dependent, or otherwise sensitive responses. Enforce any required isolation between request contexts independently of the cache configuration.

xml/System.Web/HttpCacheVaryByParams.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<format type="text/markdown"><![CDATA[
2222
2323
## Remarks
24-
The <xref:System.Web.HttpCachePolicy.VaryByParams%2A> property identifies which HTTP `Get` or `Post` parameters ASP.NET uses to uniquely identify a variation of the response when there are multiple cached responses for a resource. This is useful when a response depends on a set of client inputs, such as headers or parameters. In this way, `VaryByParams` lets the output cache store and serve the appropriate representation of a resource for a given request.
24+
The <xref:System.Web.HttpCachePolicy.VaryByParams%2A> property identifies which HTTP `GET` query string or `POST` form parameters ASP.NET uses to uniquely identify a variation of the response when there are multiple cached responses for a resource. This is useful when a response depends on a set of client inputs, such as query string values or form fields. In this way, `VaryByParams` lets the output cache store and serve the appropriate representation of a resource for a given request.
2525
2626
> [!IMPORTANT]
2727
> Output caching is a performance optimization feature. The `VaryBy` settings are designed to cache alternate representations of a resource based on request characteristics; they are not designed to isolate audiences or classes of content. Do not rely on cache variation to separate personalized, tenant-specific, authorization-dependent, or otherwise sensitive responses. Enforce any required isolation between request contexts independently of the cache configuration.

0 commit comments

Comments
 (0)