summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}