roots / bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure
https://roots.io/bedrock/
MIT License
6.19k stars 1.17k forks source link

🔧 Disable script concatenation by default #717

Open retlehs opened 6 months ago

retlehs commented 6 months ago

This PR sets CONCATENATE_SCRIPTS to false by default which prevents WordPress from concatenating scripts

Ref https://discourse.roots.io/t/upstream-timed-out-for-load-styles-php/26973

tangrufus commented 6 months ago

Should we take it one step further to disable COMPRESS_SCRIPTS, COMPRESS_CSS and ENFORCE_GZIP as well?

The CDN and web servers (e.g: nginx, apache, etc) should take care of those.

slackday commented 5 days ago

I started getting problems with this after updating nginx from 1.21.7 to 1.27.2. Not with timeout to load-styles.php like many people report but nginx would just return connection reset by peer.

Setting CONCATENATE_SCRIPTS to false solved the problem. Not sure why it happens but seems WordPress does something not compatible with latest nginx.