diff --git a/cache/cache.php b/cache/cache.php
index d4b7068..b885f9b 100644
--- a/cache/cache.php
+++ b/cache/cache.php
@@ -35,6 +35,7 @@ class cache {
call_user_func('\SYSTEM\HEADER::'.$result['type']);
}else{
\SYSTEM\HEADER::FILE($ident);}
+ header("Last-Modified: " . gmdate('D, d M Y H:i:s \G\M\T', filemtime($result['data'])));
}
return \file_get_contents($result['data']);
}
diff --git a/cache/cache_css.php b/cache/cache_css.php
index a8d8e58..93ec4c0 100644
--- a/cache/cache_css.php
+++ b/cache/cache_css.php
@@ -82,6 +82,6 @@ class cache_css {
foreach($files as $f){
$minifier->add($f->SERVERPATH());}
\SYSTEM\CACHE\cache_css::put($ident, $minifier->minify());}
- return './api.php?call=cache&id='.self::CACHE_CSS.'&ident='.$ident;
+ return './cache/'.self::CACHE_CSS.'/'.$ident;
}
}
\ No newline at end of file
diff --git a/cache/cache_js.php b/cache/cache_js.php
index 303c08a..240c0c7 100644
--- a/cache/cache_js.php
+++ b/cache/cache_js.php
@@ -82,6 +82,6 @@ class cache_js {
foreach($files as $f){
$minifier->add($f->SERVERPATH());}
\SYSTEM\CACHE\cache_js::put($ident, $minifier->minify());}
- return './api.php?call=cache&id='.self::CACHE_JS.'&ident='.$ident;
+ return './cache/'.self::CACHE_JS.'/'.$ident;
}
}
\ No newline at end of file
diff --git a/files/files.php b/files/files.php
index 0c02c43..8a59562 100644
--- a/files/files.php
+++ b/files/files.php
@@ -52,11 +52,11 @@ class files {
$ext = pathinfo(self::$folders[$cat].$id);
$ext = strtoupper(array_key_exists('extension', $ext) ? $ext['extension'] : '');
- header("Last-Modified: " . gmdate('D, d M Y H:i:s \G\M\T', filemtime(self::$folders[$cat].$id)));
if(\SYSTEM\HEADER::available($ext)){
call_user_func('\SYSTEM\HEADER::'.$ext);
}else{
\SYSTEM\HEADER::FILE($id);}
+ header("Last-Modified: " . gmdate('D, d M Y H:i:s \G\M\T', filemtime(self::$folders[$cat].$id)));
//Allow Caching for all files
header('Cache-Control: public;');
diff --git a/html/html.php b/html/html.php
index d76e790..9460ea7 100644
--- a/html/html.php
+++ b/html/html.php
@@ -36,8 +36,8 @@ class html{
* @param string $script script contents
* @return string Returns script tag string.
*/
- public static function script($src,$type = 'text/javascript',$rel = 'stylesheet', $language = 'JavaScript', $script = ''){
- return '';}
+ public static function script($src,$type = 'text/javascript',$rel = 'stylesheet', $script = ''){
+ return '';}
/**
* Generate