RE: [SMARTY] 304 response returns content?

From: Date: Wed, 05 Jun 2002 15:23:52 +0000
Subject: RE: [SMARTY] 304 response returns content?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4622@lists.php.net to get a copy of this message
This is probably the same bug that I was experiencing with the cache_modified_check ! -----Message d'origine----- De : Monte Ohrt [mailto:monte@ispi.net] Envoye : mercredi 5 juin 2002 15:18 A : Mats-Olof Sander Cc : smarty-general@lists.php.net Objet : Re: [SMARTY] 304 response returns content? 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 > > -- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc. -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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