webhintio / hint

💡 A hinting engine for the web
https://webhint.io/
Apache License 2.0
3.65k stars 729 forks source link

[Bug] hint-http-cache path-based-revving of favicon.ico #5987

Open PaulDash opened 1 month ago

PaulDash commented 1 month ago

🐞 Bug report

Description

In the "HTTP cache" hint, the rules for filename/path-based revving of static content should not apply to favicon.ico

Details

The "HTTP cache" hint has a requirement that static content follows a naming convention which includes versions. The Favicon for a website should not follow this convention. While some browsers respect a directive for the icon source, which can point to files with any name, many browsers still rely on a file called exactly "favicon.ico".