try to fix caching

php 5.3

try to fix caching

parse http headers in a case insensitive manner, fix unit tests