Re: [SMARTY] CVS version

From: Date: Fri, 07 Jun 2002 15:32:47 +0000
Subject: Re: [SMARTY] CVS version
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4686@lists.php.net to get a copy of this message
On the first hit the cache must have been generated. The second hit used the cache and sent the Last-Modified header. Alain Fontaine wrote:
Hello, Here is the output of a couple of consecutive CURL calls: <-- snip --> [root@ALUMINIUM conf]# curl --head http://mondial.dhnet.be/scoreboard/scoreboard.php?MatchID=467 HTTP/1.1 200 OK Date: Fri, 07 Jun 2002 15:25:38 GMT Server: Apache/1.3.20 (Unix) PHP/4.0.6 X-Powered-By: PHP/4.0.6 X-Accelerated-By: PHPA/1.3.0 Content-Type: text/html [root@ALUMINIUM conf]# curl --head http://mondial.dhnet.be/scoreboard/scoreboard.php?MatchID=467 HTTP/1.1 200 OK Date: Fri, 07 Jun 2002 15:25:43 GMT Server: Apache/1.3.20 (Unix) PHP/4.0.6 X-Powered-By: PHP/4.0.6 X-Accelerated-By: PHPA/1.3.0 Last-Modified: Fri, 07 Jun 2002 15:25:39 GMT Content-Type: text/html [root@ALUMINIUM conf]# curl --head http://mondial.dhnet.be/scoreboard/scoreboard.php?MatchID=467 HTTP/1.1 200 OK Date: Fri, 07 Jun 2002 15:25:46 GMT Server: Apache/1.3.20 (Unix) PHP/4.0.6 X-Powered-By: PHP/4.0.6 X-Accelerated-By: PHPA/1.3.0 Last-Modified: Fri, 07 Jun 2002 15:25:39 GMT Content-Type: text/html [root@ALUMINIUM conf]# curl --head http://mondial.dhnet.be/scoreboard/scoreboard.php?MatchID=467 HTTP/1.1 200 OK Date: Fri, 07 Jun 2002 15:25:49 GMT Server: Apache/1.3.20 (Unix) PHP/4.0.6 X-Powered-By: PHP/4.0.6 X-Accelerated-By: PHPA/1.3.0 Last-Modified: Fri, 07 Jun 2002 15:25:39 GMT Content-Type: text/html <-- snip --> As you can see, the Last-Modified is not set at the very first call, but afterwards, yes, UNTIL the cache expires (after 30 seconds), and then, for the first request, it's not set anymore, and then it is set for subsequent requests again. You might test it with the URL I have supplied above... Is this behaviour correct? Shouldn't the Last-Modified header also be set at the very first call? -----Message d'origine----- De : Monte Ohrt [mailto:monte@ispi.net] Envoye : vendredi 7 juin 2002 17:13 A : Alain Fontaine Cc : smarty-general@lists.php.net Objet : Re: [SMARTY] CVS version I used ngrep and watched the packets, the header looked good for me. Alain Fontaine wrote:
Hello, I have activated the 304 header feature, and now it's working fine. Does someone know a good way/tool to actually check if the correct header is being sent? Thanks! -----Message d'origine----- De : Monte Ohrt [mailto:monte@ispi.net] Envoye : vendredi 7 juin 2002 16:03 A : Alain Fontaine Cc : smarty-general@lists.php.net Objet : Re: [SMARTY] CVS version I think I found it. Try updating from CVS again. Alain Fontaine wrote:
Hello, Yes, I have deleted the files in compile directory, and the cache files,
but
the problem is still there. I have asked a friend to verify, and it's the same problem for him, so it's my browser or computer. Actually, approximately 1 time out of 10 it would display the output correctly, but the other 9 times there is no output at all. I have caching enabled, but not the 304 header feature yet. -----Message d'origine----- De : Monte Ohrt [mailto:monte@ispi.net] Envoye : vendredi 7 juin 2002 15:39 A : Alain Fontaine Cc : smarty-general@lists.php.net Objet : Re: [SMARTY] CVS version Also, if you get a 304 Not Modified you will not get content back (now that it is fixed). Clear your browser cache too. Alain Fontaine wrote:
Hello, I have just tried the latest CVS version, and all I get from my templates now is blank pages (no output at all)? -----Message d'origine----- De : Monte Ohrt [mailto:monte@ispi.net] Envoye : vendredi 7 juin 2002 15:16 A : Alain Fontaine Cc : smarty-general@lists.php.net Objet : Re: [SMARTY] CVS version Well that is why we have CVS :-) Use it, abuse it, let us know if there are any problems. It should work fine, we don't commit anything that is knowningly broken. Alain Fontaine wrote:
Hello! I'm particularly interested in the latest bugfix with the 304 header. Is
it
generally "safe" to use the latest CVS version of Smarty? --- Alain Fontaine VAlain sa
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.
-- 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
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

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