Implemented relative days for cache expiry and broke out the headers setting into a different method