Update cache-tag-helper.md (#9311)
Fixes #6971 <!-- When creating a new PR, please do the following: * Reference the issue number if there is one, e.g.: Fixes #Issue_Number The "Fixes #nnn" syntax in the PR description allows GitHub to automatically close the issue when this PR is merged. NOTE: This is a comment; please type your descriptions above or below it. -->pull/9329/head
parent
1021d7a298
commit
ca1e5fba4e
|
@ -129,7 +129,7 @@ The following example monitors the values of `Make` and `Model`. The example cac
|
|||
| -------------- | -------------------- |
|
||||
| String | `Make`, `Make,Model` |
|
||||
|
||||
`vary-by-route` accepts a comma-delimited list of header values that trigger a cache refresh when the route data parameter value changes.
|
||||
`vary-by-route` accepts a comma-delimited list of route parameter names that trigger a cache refresh when the route data parameter value changes.
|
||||
|
||||
Example:
|
||||
|
||||
|
@ -155,7 +155,7 @@ routes.MapRoute(
|
|||
| -------------- | -------------------------------------------------------------------------------- |
|
||||
| String | `.AspNetCore.Identity.Application`, `.AspNetCore.Identity.Application,HairColor` |
|
||||
|
||||
`vary-by-cookie` accepts a comma-delimited list of header values that trigger a cache refresh when the header values change.
|
||||
`vary-by-cookie` accepts a comma-delimited list of cookie names that trigger a cache refresh when the cookie values change.
|
||||
|
||||
The following example monitors the cookie associated with ASP.NET Core Identity. When a user is authenticated, a change in the Identity cookie triggers a cache refresh:
|
||||
|
||||
|
|
Loading…
Reference in New Issue