Re: [SMARTY] 304 response returns content?
| From: | Monte Ohrt | Date: | Wed, 05 Jun 2002 13:18:21 +0000 |
| Subject: | Re: [SMARTY] 304 response returns content? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4615@lists.php.net to get a copy of this message | ||
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-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.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