Cache policy for pages served from basic auth.
This policy disallows caching of requests that use basic_auth for security reasons. Otherwise responses for authenticated requests can get into the page cache and could be delivered to unprivileged users.
Hierarchy
- class \Drupal\basic_auth\PageCache\DisallowBasicAuthRequests implements RequestPolicyInterface
 
File
- core/modules/basic_auth/src/PageCache/DisallowBasicAuthRequests.php, line 15
 
Namespace
Drupal\basic_auth\PageCache
Members
| Name | Modifiers | Type | Description | 
|---|---|---|---|
| DisallowBasicAuthRequests::check | public | function | Determines whether delivery of a cached page should be attempted. Overrides RequestPolicyInterface::check | 
| RequestPolicyInterface::ALLOW | constant | Allow delivery of cached pages. | |
| RequestPolicyInterface::DENY | constant | Deny delivery of cached pages. | 
Please login to continue.