@@ -707,11 +707,12 @@ <h4 id="toc-methods">
707707< dd > Sets the body of the current message.</ dd >
708708
709709 < dt class ="phpdocumentor-table-of-contents__entry -method -public ">
710- < a class ="" href ="classes/CodeIgniter-HTTP-DownloadResponse .html#method_setCache "> setCache()</ a >
710+ < a class ="" href ="classes/CodeIgniter-HTTP-ResponseTrait .html#method_setCache "> setCache()</ a >
711711 < span >
712712 : $this </ span >
713713</ dt >
714- < dd > Disables cache configuration.</ dd >
714+ < dd > A shortcut method that allows the developer to set all of the
715+ cache-control headers in one method call.</ dd >
715716
716717 < dt class ="phpdocumentor-table-of-contents__entry -method -public ">
717718 < a class ="" href ="classes/CodeIgniter-HTTP-DownloadResponse.html#method_setContentType "> setContentType()</ a >
@@ -1843,7 +1844,7 @@ <h4 class="phpdocumentor-element__name" id="method_buildHeaders">
18431844 < aside class ="phpdocumentor-element-found-in ">
18441845 < abbr class ="phpdocumentor-element-found-in__file " title ="system/HTTP/DownloadResponse.php "> < a href ="files/system-http-downloadresponse.html "> < abbr title ="system/HTTP/DownloadResponse.php "> DownloadResponse.php</ abbr > </ a > </ abbr >
18451846 :
1846- < span class ="phpdocumentor-element-found-in__line "> 283 </ span >
1847+ < span class ="phpdocumentor-element-found-in__line "> 273 </ span >
18471848
18481849 </ aside >
18491850
@@ -3045,7 +3046,7 @@ <h4 class="phpdocumentor-element__name" id="method_inline">
30453046 < aside class ="phpdocumentor-element-found-in ">
30463047 < abbr class ="phpdocumentor-element-found-in__file " title ="system/HTTP/DownloadResponse.php "> < a href ="files/system-http-downloadresponse.html "> < abbr title ="system/HTTP/DownloadResponse.php "> DownloadResponse.php</ abbr > </ a > </ abbr >
30473048 :
3048- < span class ="phpdocumentor-element-found-in__line "> 354 </ span >
3049+ < span class ="phpdocumentor-element-found-in__line "> 342 </ span >
30493050
30503051 </ aside >
30513052
@@ -3349,7 +3350,7 @@ <h4 class="phpdocumentor-element__name" id="method_send">
33493350 < aside class ="phpdocumentor-element-found-in ">
33503351 < abbr class ="phpdocumentor-element-found-in__file " title ="system/HTTP/DownloadResponse.php "> < a href ="files/system-http-downloadresponse.html "> < abbr title ="system/HTTP/DownloadResponse.php "> DownloadResponse.php</ abbr > </ a > </ abbr >
33513352 :
3352- < span class ="phpdocumentor-element-found-in__line "> 262 </ span >
3353+ < span class ="phpdocumentor-element-found-in__line "> 252 </ span >
33533354
33543355 </ aside >
33553356
@@ -3404,7 +3405,7 @@ <h4 class="phpdocumentor-element__name" id="method_sendBody">
34043405 < aside class ="phpdocumentor-element-found-in ">
34053406 < abbr class ="phpdocumentor-element-found-in__file " title ="system/HTTP/DownloadResponse.php "> < a href ="files/system-http-downloadresponse.html "> < abbr title ="system/HTTP/DownloadResponse.php "> DownloadResponse.php</ abbr > </ a > </ abbr >
34063407 :
3407- < span class ="phpdocumentor-element-found-in__line "> 306 </ span >
3408+ < span class ="phpdocumentor-element-found-in__line "> 294 </ span >
34083409
34093410 </ aside >
34103411
@@ -3585,17 +3586,18 @@ <h5 class="phpdocumentor-return-value__heading">Return values</h5>
35853586>
35863587 < h4 class ="phpdocumentor-element__name " id ="method_setCache ">
35873588 setCache()
3588- < a href ="classes/CodeIgniter-HTTP-DownloadResponse .html#method_setCache " class ="headerlink "> < i class ="fas fa-link "> </ i > </ a >
3589+ < a href ="classes/CodeIgniter-HTTP-ResponseTrait .html#method_setCache " class ="headerlink "> < i class ="fas fa-link "> </ i > </ a >
35893590
35903591 </ h4 >
35913592 < aside class ="phpdocumentor-element-found-in ">
3592- < abbr class ="phpdocumentor-element-found-in__file " title ="system/HTTP/DownloadResponse .php "> < a href ="files/system-http-downloadresponse .html "> < abbr title ="system/HTTP/DownloadResponse .php "> DownloadResponse .php</ abbr > </ a > </ abbr >
3593+ < abbr class ="phpdocumentor-element-found-in__file " title ="system/HTTP/ResponseTrait .php "> < a href ="files/system-http-responsetrait .html "> < abbr title ="system/HTTP/ResponseTrait .php "> ResponseTrait .php</ abbr > </ a > </ abbr >
35933594 :
3594- < span class ="phpdocumentor-element-found-in__line "> 250 </ span >
3595+ < span class ="phpdocumentor-element-found-in__line "> 305 </ span >
35953596
35963597 </ aside >
35973598
3598- < p class ="phpdocumentor-summary "> Disables cache configuration.</ p >
3599+ < p class ="phpdocumentor-summary "> A shortcut method that allows the developer to set all of the
3600+ cache-control headers in one method call.</ p >
35993601
36003602 < code class ="phpdocumentor-code phpdocumentor-signature ">
36013603 < span class ="phpdocumentor-signature__visibility "> public</ span >
@@ -3604,7 +3606,28 @@ <h4 class="phpdocumentor-element__name" id="method_setCache">
36043606 < div class ="phpdocumentor-label-line ">
36053607 </ div >
36063608
3607-
3609+ < section class ="phpdocumentor-description "> < p > The options array is used to provide the cache-control directives
3610+ for the header. It might look something like:</ p >
3611+ < pre class ="prettyprint "> < code class ="prettyprint "> $options = [
3612+ 'max-age' => 300,
3613+ 's-maxage' => 900
3614+ 'etag' => 'abcde',
3615+ ];
3616+ </ code > </ pre >
3617+ < p > Typical options are:</ p >
3618+ < ul >
3619+ < li > etag</ li >
3620+ < li > last-modified</ li >
3621+ < li > max-age</ li >
3622+ < li > s-maxage</ li >
3623+ < li > private</ li >
3624+ < li > public</ li >
3625+ < li > must-revalidate</ li >
3626+ < li > proxy-revalidate</ li >
3627+ < li > no-transform</ li >
3628+ </ ul >
3629+ </ section >
3630+
36083631 < h5 class ="phpdocumentor-argument-list__heading "> Parameters</ h5 >
36093632 < dl class ="phpdocumentor-argument-list ">
36103633 < dt class ="phpdocumentor-argument-list__entry ">
@@ -3617,21 +3640,6 @@ <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
36173640 </ dl >
36183641
36193642
3620- < h5 class ="phpdocumentor-tag-list__heading " id ="tags ">
3621- Tags
3622- < a href ="classes/CodeIgniter-HTTP-DownloadResponse.html#method_setCache#tags " class ="headerlink "> < i class ="fas fa-link "> </ i > </ a >
3623-
3624- </ h5 >
3625- < dl class ="phpdocumentor-tag-list ">
3626- < dt class ="phpdocumentor-tag-list__entry ">
3627- < span class ="phpdocumentor-tag__name "> throws</ span >
3628- </ dt >
3629- < dd class ="phpdocumentor-tag-list__definition ">
3630- < span class ="phpdocumentor-tag-link "> < a href ="classes/CodeIgniter-Exceptions-DownloadException.html "> < abbr title ="\CodeIgniter\Exceptions\DownloadException "> DownloadException</ abbr > </ a > </ span >
3631-
3632-
3633- </ dd >
3634- </ dl >
36353643
36363644
36373645
@@ -4919,7 +4927,7 @@ <h4 class="phpdocumentor-element__name" id="method_sendBodyByBinary">
49194927 < aside class ="phpdocumentor-element-found-in ">
49204928 < abbr class ="phpdocumentor-element-found-in__file " title ="system/HTTP/DownloadResponse.php "> < a href ="files/system-http-downloadresponse.html "> < abbr title ="system/HTTP/DownloadResponse.php "> DownloadResponse.php</ abbr > </ a > </ abbr >
49214929 :
4922- < span class ="phpdocumentor-element-found-in__line "> 342 </ span >
4930+ < span class ="phpdocumentor-element-found-in__line "> 330 </ span >
49234931
49244932 </ aside >
49254933
@@ -4958,7 +4966,7 @@ <h4 class="phpdocumentor-element__name" id="method_sendBodyByFilePath">
49584966 < aside class ="phpdocumentor-element-found-in ">
49594967 < abbr class ="phpdocumentor-element-found-in__file " title ="system/HTTP/DownloadResponse.php "> < a href ="files/system-http-downloadresponse.html "> < abbr title ="system/HTTP/DownloadResponse.php "> DownloadResponse.php</ abbr > </ a > </ abbr >
49604968 :
4961- < span class ="phpdocumentor-element-found-in__line "> 324 </ span >
4969+ < span class ="phpdocumentor-element-found-in__line "> 312 </ span >
49624970
49634971 </ aside >
49644972
@@ -5190,7 +5198,7 @@ <h4 class="phpdocumentor-element__name" id="method_setContentTypeByMimeType">
51905198 < li class =""> < a href ="classes/CodeIgniter-HTTP-ResponseTrait.html#method_sendHeaders "> sendHeaders()</ a > </ li >
51915199 < li class =""> < a href ="classes/CodeIgniter-HTTP-DownloadResponse.html#method_setBinary "> setBinary()</ a > </ li >
51925200 < li class =""> < a href ="classes/CodeIgniter-HTTP-MessageTrait.html#method_setBody "> setBody()</ a > </ li >
5193- < li class =""> < a href ="classes/CodeIgniter-HTTP-DownloadResponse .html#method_setCache "> setCache()</ a > </ li >
5201+ < li class =""> < a href ="classes/CodeIgniter-HTTP-ResponseTrait .html#method_setCache "> setCache()</ a > </ li >
51945202 < li class =""> < a href ="classes/CodeIgniter-HTTP-DownloadResponse.html#method_setContentType "> setContentType()</ a > </ li >
51955203 < li class =""> < a href ="classes/CodeIgniter-HTTP-ResponseTrait.html#method_setCookie "> setCookie()</ a > </ li >
51965204 < li class =""> < a href ="classes/CodeIgniter-HTTP-ResponseTrait.html#method_setDate "> setDate()</ a > </ li >
0 commit comments