Smarty and CGI
| From: | Karel W. Dingeldey | Date: | Sat, 09 Aug 2003 16:19:53 +0000 |
| Subject: | Smarty and CGI | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-1742@lists.php.net to get a copy of this message | ||
Hi.
I'm developing with smarty on an apache with php as module.
The production webserver is an apache, too, but with php as cgi, for
security reasons.
Now I've got the problem that, smarty caching enabled, I got, after
reloading the site, a server error (#500).
The log says "malformed header from script. Bad header=HTTP/1.1 304 Not
Modified: ...".
My first issue was, that cgi needs different headers. So I changed
"Smarty.class.php/1121" (version 2.5.0) to "header("Status: 304 Not
Modified");".
And now I get no error anymore.
I would say, it is a bug, isn't it?!
Regards,
Criena