videosphere
    Preparing search index...
    • Builds a cache-busted preview URL for a YouTube-hosted thumbnail image. YouTube often reuses the same CDN path when a custom thumbnail is replaced.

      Parameters

      • thumbnailUrl: string

        Stored YouTube thumbnail URL.

      • cacheKey: string

        Value that changes when the thumbnail changes (e.g. ISO timestamp).

      Returns string

      URL with a vs query parameter for browser cache busting.