Problem/Motivation
Even when content of an icon sprite sheet changes, the cache-busting query hash can remain the same. This is due to generation of the hash using only some plugin data but not the actual file data.
Steps to reproduce
- Create a sprite sheet with some icons.
- Render an icon, taking note of the cache-busting hash
- Change content of the sprite sheet, without changing any viewboxes (just the path content)
- Clear the Drupal cache, see that the hash remains the same
Proposed resolution
Use the file content to generate the hash.
Remaining tasks
Make the patch.
Issue fork ex_icons-3256934
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
wongjn commented