Chunks are downloaded twice by the browser

Created on 23 July 2025, about 1 month 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

Production build 0.71.5 2024