Skip to content

Commit

Permalink
Send correct MIME type for non-statically cached javascript files.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Sep 17, 2015
1 parent 16cc694 commit ceecea6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion horde/services/cache.php
Expand Up @@ -75,7 +75,11 @@
}

$data = $cache->get($args['cid'], 0);
$type = 'text/' . $type;
if ($type == 'css') {
$type = 'text/css';
} else {
$type = 'application/javascript';
}
break;

default:
Expand Down

0 comments on commit ceecea6

Please sign in to comment.