added header and cache methods to response builder