Recommend commit message:
Issue #1934508 by jwilson3, wesleydv, matglas86, longwave, sidharthap, superspring, clemens.tolboom, MegaChriz: Make cache clear affect logo and favicon.
Developers using a git/svn based deployment process cannot overwrite the logo.png or favicon.ico files in a theme, deploy into a production environment, and expect the site to display the updated files because browsers that have already visited the site will pull these files from their cache.
From a front-end developer perspective,
theme_get_setting does not provide any clean method to alter the data in order to add a cache-busting query string from a custom module or theme, thus the only way to ensure all browsers get a new version of these files is to either specify a separate path to a different logo or favicon file or upload a file with a different name. This can be done only via the Appearance page in the Drupal administrative user interface or by writing an update script in a custom module.
The proposed solution here appends the standard Drupal browser cache-busting string (
css_js_query_string) to the logo and favicon URLs generated in
User interface changes
|PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 67,646 pass(es).|
|PASSED: [[SimpleTest]]: [MySQL] 58,776 pass(es).|
|PASSED: [[SimpleTest]]: [MySQL] 58,740 pass(es).|