From 004c26e4c0f4b81c06ee67be26cb3abe33399dd6 Mon Sep 17 00:00:00 2001 From: David Flatz Date: Thu, 8 Nov 2012 16:08:12 +0000 Subject: send correct mime type for javascript --- itjs.class | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'itjs.class') diff --git a/itjs.class b/itjs.class index e41ffe5..6c82540 100644 --- a/itjs.class +++ b/itjs.class @@ -35,8 +35,7 @@ function send_headers($charset = null) self::$charset = $charset; - if (!preg_match('/Opera/', $_SERVER['HTTP_USER_AGENT']) && !$_REQUEST['itjs_iframe']) # text/plain breaks Opera 8.51/Linux and IFrame fallback - header("Content-Type: text/plain; charset=$charset"); # Berni reported some Firewalls to require this + header("Content-Type: application/x-javascript; charset=$charset"); header('Expires: ' . gmdate('D, d M Y H:i:s', time()+10) . ' GMT'); # prevent broken data on IE reloads } -- cgit v1.2.3