# Favicon setup: "To work correctly over a CDN it must be a png"

**URL:** https://meta.discourse.org/t/favicon-setup-to-work-correctly-over-a-cdn-it-must-be-a-png/311726
**Category:** Support
**Created:** [June 12, 2024, 10:14am UTC](https://meta.discourse.org/t/favicon-setup-to-work-correctly-over-a-cdn-it-must-be-a-png/311726 "2024-06-12T10:14:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![henvo](https://avatars.discourse-cdn.com/v4/letter/h/dfb087/32.png) [@henvo](https://meta.discourse.org/u/henvo)
#### Post date: [June 12, 2024, 10:14am UTC](https://meta.discourse.org/t/favicon-setup-to-work-correctly-over-a-cdn-it-must-be-a-png/311726/1 "2024-06-12T10:14:18Z")

</div>

The config for favicon says:

> To work correctly over a CDN it must be a png

What does this mean, which CDNs, and why wouldn’t an svg work?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [June 13, 2024, 7:41pm UTC](https://meta.discourse.org/t/favicon-setup-to-work-correctly-over-a-cdn-it-must-be-a-png/311726/2 "2024-06-13T19:41:58Z")

</div>

> [@henvo](#):
>
> What does this mean, which CDNs,

Any CDNs (content delivery networks) you may have configured for hosting files when setting up your site, for example: [Configure an S3 compatible object storage provider for uploads](https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916)

If you aren’t using a CDN like this, then you can likely disregard the message.

> [@henvo](#):
>
> why wouldn’t an svg work?

The short answer is that Discourse expects a PNG on the backend.

The long answer seems to be related to this comment in the related code, though I’m not familiar with these technical specifics:

> <https://github.com/discourse/discourse/blob/main/app/controllers/static_controller.rb#L134-144>

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 13, 2024, 7:42pm UTC](https://meta.discourse.org/t/favicon-setup-to-work-correctly-over-a-cdn-it-must-be-a-png/311726/3 "2024-07-13T19:42:41Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
