Browse Source

Fix #18004: Clarify where PageCache::$cacheCookies and PageCache::$cacheHeaders are used

tags/2.0.36
Alexander Makarov 4 years ago
parent
commit
d4a3841d1c
No known key found for this signature in database
GPG Key ID: 3617B79C6A325E4A
  1. 2
      framework/filters/PageCache.php

2
framework/filters/PageCache.php

@ -124,6 +124,7 @@ class PageCache extends ActionFilter implements DynamicContentAwareInterface
* @var bool|array a boolean value indicating whether to cache all cookies, or an array of * @var bool|array a boolean value indicating whether to cache all cookies, or an array of
* cookie names indicating which cookies can be cached. Be very careful with caching cookies, because * cookie names indicating which cookies can be cached. Be very careful with caching cookies, because
* it may leak sensitive or private data stored in cookies to unwanted users. * it may leak sensitive or private data stored in cookies to unwanted users.
* @see insertResponseCollectionIntoData()
* @since 2.0.4 * @since 2.0.4
*/ */
public $cacheCookies = false; public $cacheCookies = false;
@ -131,6 +132,7 @@ class PageCache extends ActionFilter implements DynamicContentAwareInterface
* @var bool|array a boolean value indicating whether to cache all HTTP headers, or an array of * @var bool|array a boolean value indicating whether to cache all HTTP headers, or an array of
* HTTP header names (case-insensitive) indicating which HTTP headers can be cached. * HTTP header names (case-insensitive) indicating which HTTP headers can be cached.
* Note if your HTTP headers contain sensitive information, you should white-list which headers can be cached. * Note if your HTTP headers contain sensitive information, you should white-list which headers can be cached.
* @see insertResponseCollectionIntoData()
* @since 2.0.4 * @since 2.0.4
*/ */
public $cacheHeaders = true; public $cacheHeaders = true;

Loading…
Cancel
Save