cvs: php4(PHP_4_0_6) /pear/Cache OutputCompression.php

From: Date: Mon, 14 May 2001 08:58:43 +0000
Subject: cvs: php4(PHP_4_0_6) /pear/Cache OutputCompression.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-138@lists.php.net to get a copy of this message
chregu Mon May 14 01:58:43 2001 EDT Modified files: (Branch: PHP_4_0_6) /php4/pear/Cache OutputCompression.php Log: do not compress if $this->no_cache is True (otherwise we get some "Headers already sent"-errors) Index: php4/pear/Cache/OutputCompression.php diff -u php4/pear/Cache/OutputCompression.php:1.1 php4/pear/Cache/OutputCompression.php:1.1.2.1 --- php4/pear/Cache/OutputCompression.php:1.1 Wed May 2 10:21:21 2001 +++ php4/pear/Cache/OutputCompression.php Mon May 14 01:58:43 2001 @@ -23,7 +23,7 @@ * * Based upon a case study from Christian Stocker and inspired by jpcache. * -* @version $Id: OutputCompression.php,v 1.1 2001/05/02 17:21:21 uw Exp $ +* @version $Id: OutputCompression.php,v 1.1.2.1 2001/05/14 08:58:43 chregu Exp $ * @author Ulf Wendel <ulf.wendel@phpdoc.de>, Christian Stocker <chregu@nomad.ch> * @access public * @package Cache @@ -155,7 +155,7 @@ if ("" == $content) $content = &$this->content; - if ($this->compression) { + if ($this->compression && !$this->no_cache) { $etag = 'PEAR-Cache-' . md5(substr($content, -40)); header("ETag: $etag"); @@ -225,4 +225,4 @@ } // end class OutputCompression -?> \ No newline at end of file +?>

« previous php.pear.cvs (#138) next »