Chunks are downloaded twice by the browser

Created on 23 July 2025, 13 days ago

Problem/Motivation

  • Drupal adds a cachebusting string to JS assets
  • Entrypoints ask the browser for the files without that string
  • The browser currently downloads both versions

Steps to reproduce

  • Have a build that involves chunks
  • Look at the sources tab where those chunks are stored

Proposed resolution

Add 'preprocessed: true' to all chunks in library definitions to bypass the query string

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇦🇺Australia darvanen Sydney, Australia

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

Comments & Activities

  • Issue created by @darvanen
  • 🇦🇺Australia darvanen Sydney, Australia

    Oh, I see this may be already addressed by inherting properties in the latest code, I'll update the module and come back to this when I have.

Production build 0.71.5 2024