Re: [SMARTY] 304 response returns content?

From: Date: Fri, 07 Jun 2002 15:19:04 +0000
Subject: Re: [SMARTY] 304 response returns content?
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4682@lists.php.net to get a copy of this message
http://www.web-caching.com/cacheability.html is a good place for testing/verifying (and also learning) cache handling. /moj Monte Ohrt wrote:
That's a bug. Try the CVS version of Smarty, see if that works OK. Mats-Olof Sander wrote:
If I use cache_modified_check = true Smarty seems to return response '304 Not Modified' ok, but also returns content. Shouldn't the content of such a reponse be empty? Some browsers don't behave well when the get content in 304 response. I tested the following modification: $ diff Smarty.class.php Smarty.class.php.new 609a610
                            echo $_smarty_results;
610a612,613
                    } else {
                        echo $_smarty_results;
612d614
<                     echo $_smarty_results;
with good results. Can someone review this and and correct the code if my suggestion is correct? moj

« previous php.smarty.general (#4682) next »