Commit 0127a626 authored by jonnybradley's avatar jonnybradley

[FIX] js: Don't set Expires to +10 years and also try not to cache it (so now...

[FIX] js: Don't set Expires to +10 years and also try not to cache it (so now these two large files don't need to be downloaded every time, 10 years might be a bit much, no?)
parent 7a2f9d66
......@@ -16,7 +16,6 @@
* Cached by language to allow translations
*/
header('content-type: application/x-javascript');
header('Cache-Control: no-cache, pre-check=0, post-check=0');
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+3600*24*365*10) . ' GMT');
require_once 'tiki-filter-base.php';
......
......@@ -20,7 +20,6 @@
*/
header('content-type: application/x-javascript');
header('Cache-Control: no-cache, pre-check=0, post-check=0');
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+3600*24*365*10) . ' GMT');
require_once 'tiki-filter-base.php';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment