http: clean up logic a bit
http: add the Cache-Control and Expires respecting logic

Could use some tests...