"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/web/filters/CHttpCacheFilter.php" between
yii-1.1.19.5790cb.tar.gz and yii-1.1.20.6ed384.tar.gz

About: Yii is a high-performance component-based PHP framework for developing large-scale Web applications. Hint: Yii 1.1 is now in maintenance mode.

CHttpCacheFilter.php  (yii-1.1.19.5790cb):CHttpCacheFilter.php  (yii-1.1.20.6ed384)
skipping to change at line 196 skipping to change at line 196
/** /**
* Sends the cache control header to the client * Sends the cache control header to the client
* @see cacheControl * @see cacheControl
* @since 1.1.12 * @since 1.1.12
*/ */
protected function sendCacheControlHeader() protected function sendCacheControlHeader()
{ {
if(Yii::app()->session->isStarted) if(Yii::app()->session->isStarted)
{ {
session_cache_limiter('public'); Yii::app()->session->setCacheLimiter('public');
header('Pragma:',true); header('Pragma:',true);
} }
header('Cache-Control: '.$this->cacheControl,true); header('Cache-Control: '.$this->cacheControl,true);
} }
/** /**
* Generates a quoted string out of the seed * Generates a quoted string out of the seed
* @param mixed $seed Seed for the ETag * @param mixed $seed Seed for the ETag
* @return string Quoted string serving as ETag * @return string Quoted string serving as ETag
*/ */
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)