if you start serving static images and aggregated CSS bundles from a CDN and in the CSS files there is a sprite that changes here and there, then there is a good chance that flushing the image from the CDN might not be enough due to browser cache. Since there is already a function (_drupal_build_css_path) that prefixes url() paths in CSS files might as well add the CSS version to the path to avoid this issue.

Comments

nagba’s picture

Assigned: Unassigned » nagba
Status: Active » Needs review
StatusFileSize
new470 bytes

the patch would add the css bundle version to the path in the url() to make sure it gets refetched by the visitors.

mgifford’s picture

Assigned: nagba » Unassigned
Issue summary: View changes

If this hasn't been fixed in D8 and still applies, it would need to be addressed there first.

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.