Cache-control header is missing so Drupal is hit every time for favicon

Created on 18 June 2020, almost 5 years ago
Updated 4 March 2025, 3 months ago

Hello

When a request for /favicon.ico comes into the site, it appears to never get cached.
This looks to be due to there being no Cache-Control headers returned.

We could add special cases to the caching proxy (we are using Varnish) but generally speaking I would expect this to be controlled from Drupal much like with the current tag-based approached. It would be very useful if the response could either use cache tags so that any caching proxy supporting tag-based caching can work perfectly, and the module can even flush those cache when icons change. Or alternatively to have a configuration to allow setting a max-age Cache-Control header on the returned icons.

Regards,

Jason

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom Driskell

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024