diff options
-rw-r--r-- | boost.module | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/boost.module b/boost.module index 15ad887..d5de09b 100644 --- a/boost.module +++ b/boost.module @@ -1190,7 +1190,32 @@ function boost_boost_storage_types() { 'application/rss+xml', ), ); + // #1219484 $types['text/javascript'] = array( + 'title' => t('text/javascript'), + 'description' => t('Javascript output, usually a response to a AJAX request'), + 'extension' => 'js', + 'enabled' => FALSE, + 'gzip' => TRUE, + 'lifetime_max' => 3600, + 'lifetime_min' => 0, + 'comment_start' => '/* ', + 'comment_end' => ' */', + 'variants' => array(), + ); + $types['application/javascript'] = array( + 'title' => t('AJAX/JavaScript'), + 'description' => t('Javascript output, usually a response to a AJAX request'), + 'extension' => 'json', + 'enabled' => FALSE, + 'gzip' => TRUE, + 'lifetime_max' => 3600, + 'lifetime_min' => 0, + 'comment_start' => '', + 'comment_end' => '', + 'variants' => array(), + ); + $types['application/json'] = array( 'title' => t('AJAX/JSON'), 'description' => t('JSON output, usually a response to a AJAX request'), 'extension' => 'json', @@ -1198,10 +1223,11 @@ function boost_boost_storage_types() { 'gzip' => TRUE, 'lifetime_max' => 3600, 'lifetime_min' => 0, - 'comment_start' => '/* ', - 'comment_end' => ' */', + 'comment_start' => '', + 'comment_end' => '', 'variants' => array(), ); + return $types; } |