def METHOD_NAME(f: CacheableFunc) -> Callable[..., Response]:
    @wraps(f)
    def decorated_function(*args: Any, **kwargs: Any) -> Response:
        resp = f(*args, **kwargs)
        if not isinstance(resp, Response):
            resp = make_response(resp)
        resp.cache_control.max_age = seconds  # type: ignore
        return resp
    return decorated_function