Dynamic Page Cache's redirect render array.
Type: array
File
- core/modules/dynamic_page_cache/src/EventSubscriber/DynamicPageCacheSubscriber.php, line 75
Class
- DynamicPageCacheSubscriber
- Returns cached responses as early and avoiding as much work as possible.
Namespace
Drupal\dynamic_page_cache\EventSubscriber
Code
protected $dynamicPageCacheRedirectRenderArray = [ '#cache' => [ 'keys' => ['response'], 'contexts' => [ 'route', // Some routes' controllers rely on the request format (they don't have // a separate route for each request format). Additionally, a controller // may be returning a domain object that a KernelEvents::VIEW subscriber // must turn into an actual response, but perhaps a format is being // requested that the subscriber does not support. // @see \Drupal\Core\EventSubscriber\AcceptNegotiation406::onViewDetect406() 'request_format', ], 'bin' => 'dynamic_page_cache', ], ];
Please login to continue.