write cache headers for api v2 in _render
headers cleanup