diff options
-rw-r--r-- | itjs.class | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 } |