From 3821a2321ed986257332f92dd0a9213d7981efb7 Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Sat, 22 Apr 2017 11:45:42 +0300 Subject: [PATCH] Disable JS/CSS aggregation only locally. --- Drupal8/sites/default/development.settings.php | 8 +++----- ...mple.settings.local.php => example.local.settings.php} | 4 ++++ 2 files changed, 7 insertions(+), 5 deletions(-) rename Drupal8/sites/default/{example.settings.local.php => example.local.settings.php} (77%) diff --git a/Drupal8/sites/default/development.settings.php b/Drupal8/sites/default/development.settings.php index cddf2ff..faa50b4 100755 --- a/Drupal8/sites/default/development.settings.php +++ b/Drupal8/sites/default/development.settings.php @@ -17,11 +17,9 @@ // Expiration of cached pages to 0 $config['system.performance']['cache']['page']['max_age'] = 0; -// Aggregate CSS files off -$config['system.performance']['css']['preprocess'] = 0; - -// Aggregate JavaScript files off -$config['system.performance']['js']['preprocess'] = 0; +// Aggregate CSS/JS files to not confuse clients with browser cache issues. +$config['system.performance']['css']['preprocess'] = 1; +$config['system.performance']['js']['preprocess'] = 1; // Stage file proxy URL from production URL if(getenv('AMAZEEIO_PRODUCTION_URL')){ diff --git a/Drupal8/sites/default/example.settings.local.php b/Drupal8/sites/default/example.local.settings.php similarity index 77% rename from Drupal8/sites/default/example.settings.local.php rename to Drupal8/sites/default/example.local.settings.php index b9bd0b5..f8b721d 100644 --- a/Drupal8/sites/default/example.settings.local.php +++ b/Drupal8/sites/default/example.local.settings.php @@ -10,3 +10,7 @@ // Disable render caches, necessary for twig files to be reloaded on every page view $settings['cache']['bins']['render'] = 'cache.backend.null'; $settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null'; + +// Disable CSS/JS aggregation. +$config['system.performance']['css']['preprocess'] = 0; +$config['system.performance']['js']['preprocess'] = 0;