summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
authorDavid Flatz2012-11-08 16:08:12 +0000
committerDavid Flatz2012-11-08 16:08:12 +0000
commit004c26e4c0f4b81c06ee67be26cb3abe33399dd6 (patch)
treee5d3121096b4910f6a5506401671dda96d2f986c /itjs.class
parentcfcc27f8f513d05809df9efbbd4f05b01336bdf6 (diff)
downloaditools-004c26e4c0f4b81c06ee67be26cb3abe33399dd6.tar.gz
itools-004c26e4c0f4b81c06ee67be26cb3abe33399dd6.tar.bz2
itools-004c26e4c0f4b81c06ee67be26cb3abe33399dd6.zip
send correct mime type for javascript
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class3
1 files changed, 1 insertions, 2 deletions
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
}