diff --git a/domain_conf/domain_conf.domain.inc b/domain_conf/domain_conf.domain.inc
index faca7d7..3a7e7b8 100644
--- a/domain_conf/domain_conf.domain.inc
+++ b/domain_conf/domain_conf.domain.inc
@@ -226,6 +226,62 @@ function domain_conf_domain_batch() {
     '#update_all' => TRUE,
     '#group' => t('Performance'),
   );
+  $directory = 'public://';
+  $is_writable = is_dir($directory) && is_writable($directory);
+  $disabled = !$is_writable;
+  // Compress HTML?
+  $batch['page_compression'] = array(
+    '#form' => array(
+      '#type' => 'checkbox',
+      '#title' => t('Compress cached pages'),
+      '#default_value' => variable_get('page_compression', TRUE),
+    ),
+    '#permission' => 'administer site configuration',
+    '#domain_action' => 'domain_conf',
+    '#system_default' => intval(variable_get('preprocess_css', 0) && $is_writable),
+    '#variable' => 'page_compression',
+    '#meta_description' => t('Compress cached pages for each domain.'),
+    '#data_type' => 'integer',
+    '#weight' => -4,
+    '#update_all' => TRUE,
+    '#group' => t('Performance'),
+  );
+  // Compress CSS?
+  $batch['preprocess_css'] = array(
+    '#form' => array(
+      '#type' => 'checkbox',
+      '#title' => t('Aggregate and compress CSS files'),
+      '#default_value' => intval(variable_get('preprocess_css', 0) && $is_writable),
+      '#disabled' => $disabled,
+    ),
+    '#permission' => 'administer site configuration',
+    '#domain_action' => 'domain_conf',
+    '#system_default' => intval(variable_get('preprocess_css', 0) && $is_writable),
+    '#variable' => 'preprocess_css',
+    '#meta_description' => t('Aggregate and compress CSS for each domain.'),
+    '#data_type' => 'integer',
+    '#weight' => -4,
+    '#update_all' => TRUE,
+    '#group' => t('Performance'),
+  );
+  // Compress JS?
+  $batch['preprocess_js'] = array(
+    '#form' => array(
+     '#type' => 'checkbox',
+      '#title' => t('Aggregate JavaScript files'),
+      '#default_value' => intval(variable_get('preprocess_js', 0) && $is_writable),
+      '#disabled' => $disabled,
+    ),
+    '#permission' => 'administer site configuration',
+    '#domain_action' => 'domain_conf',
+    '#system_default' => intval(variable_get('preprocess_js', 0) && $is_writable),
+    '#variable' => 'preprocess_js',
+    '#meta_description' => t('Aggregate and compress JavaScript for each domain.'),
+    '#data_type' => 'integer',
+    '#weight' => -4,
+    '#update_all' => TRUE,
+    '#group' => t('Performance'),
+  );
   // Toggle the site offline status.
   $batch['maintenance_mode'] = array(
     '#form' => array(
