Fixed issue with 304 caching. Fixed PHP 5.3 compatibility.