function tryFetchRichContent
tryFetchRichContent(
url: string,
unnamed 1?: { fresh?: boolean; }
): Promise<FetchRichContentResult>

Fetches the preview of url, and says whether the page could be reached. A preview fetched in the last five minutes is reused unless fresh is set, as a metadata refresh does. It never rejects: a failure resolves to a stub.

Parameters

url: string
optional
unnamed 1: { fresh?: boolean; }

Return Type

Usage

import { tryFetchRichContent } from "api/services/rich-content-service.ts";