tanakahisateru / pinoco

Web site development framework using PHP and (mainly) PHPTAL
http://tanakahisateru.github.io/pinoco/
Other
43 stars 10 forks source link

304 response should not have body content #62

Closed tanakahisateru closed 12 years ago

tanakahisateru commented 12 years ago

Newest version of PHP modifies Cache-Control and Expires headers if 304 (Not Modified) response has some body content.

Pinoco::error(304); has output like 404 or 500. It should be silent according to HTTP protocol spec. It is same for also: