Allow overriding the cache headers from the underlying function.