diff --git a/composer.json b/composer.json index c80dec7..3793772 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,8 @@ "drupal/core": "^9", "drush/drush": "^11.4", "os2forms/os2forms": "^3.6", - "os2web/os2web_simplesaml": "8.x-dev" + "os2web/os2web_simplesaml": "8.x-dev", + "drupal/cache_control_override": "^1.1|^2.0" }, "require-dev": { "drupal/coder": "^8.3", diff --git a/os2forms_forloeb_profile.install b/os2forms_forloeb_profile.install index 9a3d6a5..97cd91c 100644 --- a/os2forms_forloeb_profile.install +++ b/os2forms_forloeb_profile.install @@ -41,6 +41,9 @@ function os2forms_forloeb_profile_install() { ->set('default', 'gin') ->set('admin', 'gin') ->save(); + + // Enable recommended (but optional) modules. + \Drupal::service('module_installer')->install(['cache_control_override']); } /**