Permalink
Browse files

Add new headers to language stuff

  • Loading branch information...
1 parent c7c18a6 commit ddbc548d9f5aa3d36796babf5b6bb82717a062c1 moodler committed Feb 12, 2004
Showing with 12 additions and 4 deletions.
  1. +12 −4 lib/editor/lang/en.php
View
@@ -1,3 +1,15 @@
+<?php
+ include("../../../config.php");
+ $lastmodified = filemtime("en.php");
+ $lifetime = 1800;
+
+ header("Content-type: application/x-javascript"); // Correct MIME type
+ header("Last-Modified: " . gmdate("D, d M Y H:i:s", lastmodified) . " GMT");
+ header("Expires: " . gmdate("D, d M Y H:i:s", time() + $lifetime) . " GMT");
+ header("Cache-control: max_age = $lifetime");
+ header("Pragma: ");
+
+?>
// I18N constants
// LANG: "en", ENCODING: UTF-8 | ISO-8859-1
@@ -11,10 +23,6 @@
// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING;
// (if this is not possible, please include a comment
// that states what encoding is necessary.)
-<?php
- include("../../../config.php");
-
-?>
HTMLArea.I18N = {
// the following should be the filename without .js extension

0 comments on commit ddbc548

Please sign in to comment.