AdvAgg Module help - Option to Generate Static Paths for CSS/JS Assets Instead of Hashed Paths to Avoid 404 not found Errors

Created on 18 March 2025, 4 months ago

Hello,

We are facing a challenge with ADVAGG module in Drupal. Drupal generates hashed paths for aggregated CSS and JS files, for example, /sites/default/files/css/optimized/css_1j7elOv1Y7jkbrFGK5mlhzFAjNRzimSGaM0epadPQHg.9gyHJLG_-yxvM0tkvAcdtDVICy1QFwa3MpJkLNXRi0k.css?stb2x7.

We have observed that and the concerning issue is that Google crawls and indexes asset URLs(css, js) based on the hashed file paths. Once Google indexes an asset, the URL becomes part of its search index. When the Drupal cache is cleared, ADVAGG generates new hashed URLs, but Google still holds the old hashed URL, leading to 404 errors when users visit those links via search results. This affects SEO and user experience.

Please let us know if there is any option or settings within the module to generate static file paths for aggregated CSS and JS files. This would ensure that the asset URLs remain consistent rather than generating new hashed paths every time.

Thanks in advance.

💬 Support request
Status

Active

Component

Miscellaneous

Created by

🇮🇳India santhosh_103

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024