Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#4 | menu_icons-force_browser_cache_clear-2351345-4.patch | 1.11 KB | nbouhid |
#1 | menu_icons-force_browser_cache_clear-2351345-1.patch | 610 bytes | klaasvw |
Comments
Comment #1
klaasvw CreditAttribution: klaasvw commentedThe 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.
Comment #2
ndobromirov CreditAttribution: ndobromirov commentedSeems like a general solution for the problem.
Tested and it works.
Comment #3
dscl CreditAttribution: dscl commented#1 Works for me.
Thanks!
Comment #4
nbouhid CreditAttribution: nbouhid commentedThis 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.
Comment #5
nbouhid CreditAttribution: nbouhid commented