Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

142
Visualizações
Setting a title and favicon for non-html files on a website

Is there a way to set a title and favicon for non-html files on a website? For example, a link like https://example.com/files/image-or-something.png. By default Chrome just sets the title as the URL of the file, and doesn't use the original website's favicon.

This is only relevant for files that can be shown in the browser, like .png, .txt, etc, since other files are just downloaded automatically (at least on Chrome)

I'm using an Express (Node.js) server, in case there's a server-side solution

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Most browsers will by default look for a favicon in the root directory for example: http://example.com/favicon.ico. You can use this for a favicon for your images.

over 4 years ago · Santiago Trujillo Relatório

0

From what I know, this isn't currently possible.

A .png file, .txt, and anything besides .html and .htm are not websites. They just store what they need to (for example, .png stores the image, and only the image). And the only things that can have an image are .html and .htm, because only websites can have icons and titles.

If you see something other than .html and .htm with an icon or title, that's the browser parsing the file and turning it into HTML.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda