Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

141
Views
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 answers
Answer question

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!