When replacing an existing menu icon most browsers will keep showing the old icon. The requires a forced cache clear before being able to see the change.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

klaasvw’s picture

Status: Active » Needs review
FileSize
610 bytes

The following patch will add a timestamp query string to the CSS background URL if the icon is updated. This will force the browser to reload the file.

ndobromirov’s picture

Assigned: klaasvw » Unassigned
Status: Needs review » Reviewed & tested by the community

Seems like a general solution for the problem.
Tested and it works.

dscl’s picture

#1 Works for me.
Thanks!

nbouhid’s picture

This wasn't working for me. Since the security fix made on Drupal 7.20 (see https://www.drupal.org/drupal-7.20-release-notes) the way the module gets the image path is wrong. So using image_style_path is deprecated (@see https://api.drupal.org/comment/49618#comment-49618).

The following patch solves the issue for me.

nbouhid’s picture

Status: Reviewed & tested by the community » Needs review