summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip_Clarke2016-07-27 22:05:06 (GMT)
committerMathieu Lutfy2016-07-27 22:05:06 (GMT)
commit94fa47e08c147c740e7c2faa731c6ee90bf65826 (patch)
tree46f573f396255f6b138719f8d8fa2632fc9410d9
parent7e2db021a5c463d7afc2252b93a8d3358ed665d7 (diff)
Issue #1219484 by sitiveni, rares, Philip_Clarke, jamix, steven.wichers: Types application/xml and application/json not supported (support for services module)
-rw-r--r--boost.module30
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;
}