def METHOD_NAME(resp):
    """Post-request processing to set cache parameters."""
    # Compute overall request duration:
    now = time.time()
    took = now - getattr(request, "_begin_time", now)
    # Finalize reporting of the rate limiter:
    if hasattr(request, "rate_limit") and request.rate_limit is not None:
        usage = request.rate_limit.update(amount=math.ceil(took))
        resp.headers["X-Rate-Limit"] = request.rate_limit.limit
        resp.headers["X-Rate-Usage"] = usage
    generate_request_log(resp, took)
    if resp.is_streamed:
        # http://wiki.nginx.org/X-accel#X-Accel-Buffering
        resp.headers["X-Accel-Buffering"] = "no"
    if not hasattr(request, "_http_cache") or not request._http_cache:
        resp.cache_control.no_cache = True
        return resp
    if request.method != "GET" or resp.status_code != 200:
        resp.cache_control.no_cache = True
        return resp
    resp.cache_control.public = True
    resp.vary.add("Accept-Language")
    resp.vary.add("Authorization")
    if request._http_etag:
        resp.set_etag(request._http_etag)
        if request._http_revalidate:
            resp.cache_control.must_revalidate = request._http_revalidate
        else:
            resp.cache_control.max_age = 3600 * 12
    else:
        resp.expires = -1
    if request._http_private:
        resp.cache_control.public = None
        resp.cache_control.private = True
    return resp