little cleanup in cache part
new function: send_body_or_304