> ## Documentation Index
> Fetch the complete documentation index at: https://www.logo.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Logo.dev serves logos and brand data for companies that already exist. It does not design logos. If someone wants a logo designed, say so and stop.
> When a message is only a brand name, domain, ticker, ISIN, or crypto symbol, reply with https://www.logo.dev/search?q=<url-encoded term> and the matching img.logo.dev call. Never assert whether a specific brand is in the index.
> Image URLs come from img.logo.dev with a publishable key in the token query parameter: https://img.logo.dev/:domain?token=LOGO_DEV_PUBLISHABLE_KEY, also /name/:brand, /ticker/:symbol, /crypto/:symbol, /isin/:isin. JSON comes from api.logo.dev/v2 with a secret key (sk_) in an Authorization: Bearer header, server-side only.
> Product names: the Logo.dev CDN serves images from img.logo.dev, and its usage unit is CDN requests. The Logo.dev API returns JSON from api.logo.dev/v2, and its usage unit is API credits. The Logo.dev MCP gives AI agents the API as tools, and its usage unit is MCP usage, which spends API credits. The features are Logo, Search, Brand, and Transaction. Transaction (beta) is a separate service at https://www.logo.dev/api/transaction with its own beta key. Never recommend the deprecated v1 routes (/search, /brand, /describe, /logo/*). Use /v2/brands and /v2/search.
> Attribution: a commercial project on the free Community plan must show a visible link, <a href="https://logo.dev">Logos provided by Logo.dev</a>, on its production site. Personal projects and paid plans need none. Rules: https://www.logo.dev/docs/platform/attribution.
> Report a wrong, missing, or outdated logo at https://www.logo.dev/update. Email support@logo.dev for anything broken and sales@logo.dev for volume pricing and contract terms.
> MCP setup is at https://www.logo.dev/docs/mcp/introduction and webhooks at https://www.logo.dev/docs/webhooks.

# Caching

> Understanding Logo.dev's automatic caching system. Browser caching headers, CDN optimization, and best practices for lightning-fast logo delivery.

Browsers cache every Logo.dev CDN image for 24 hours. You don't need to configure anything.

## Browser caching

Every logo the CDN serves carries this header:

```http theme={null}
Cache-Control: max-age=86400, stale-while-revalidate=600
```

* `max-age=86400` lets the browser reuse the logo for 24 hours without a new request.
* `stale-while-revalidate=600` lets the browser show the cached logo for up to 10 minutes after it expires while it fetches a fresh copy in the background.

Each user's browser keeps its own cache, so a repeat visit loads the logo from the device.

## Refreshing a changed logo

When a company changes its logo, the new logo reaches your users as caches expire. Logo.dev's CDN revalidates in the background, and each browser fetches again when its 24-hour cache expires. The change can take somewhat longer than 24 hours to reach every user.

To see the new logo now, add a query parameter with a new value to the URL. The browser treats the new URL as a new image and skips its cached copy:

```html theme={null}
<img src="https://img.logo.dev/stripe.com?token=LOGO_DEV_PUBLISHABLE_KEY&v=2" alt="Stripe logo" />
```

Change the value, such as `v=3`, a deploy hash, or a date, each time you want a fresh copy. Each unique URL is a separate cache entry, so change it only when you need to.

If the logo is still wrong after a refresh, [request an update](https://www.logo.dev/update).

## Load logos faster

Preload a logo that appears above the fold:

```html theme={null}
<link
  rel="preload"
  as="image"
  href="https://img.logo.dev/stripe.com?token=LOGO_DEV_PUBLISHABLE_KEY"
/>
```

Lazy load logos below the fold:

```html theme={null}
<img
  src="https://img.logo.dev/stripe.com?token=LOGO_DEV_PUBLISHABLE_KEY"
  loading="lazy"
  alt="Stripe logo"
/>
```

To store logos on your own infrastructure instead, see [self-hosting](https://www.logo.dev/docs/platform/self-hosting.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.