summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/exe/css.php2
-rw-r--r--lib/exe/js.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php
index 5b4e560f4..d0b9461eb 100644
--- a/lib/exe/css.php
+++ b/lib/exe/css.php
@@ -67,7 +67,7 @@ function css_out(){
}
// check cache age & handle conditional request
- header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
+ header('Cache-Control: public, max-age=3600');
header('Pragma: public');
if(css_cacheok($cache,array_keys($files))){
http_conditionalRequest(filemtime($cache));
diff --git a/lib/exe/js.php b/lib/exe/js.php
index 0615db374..f18edc5d6 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -56,7 +56,7 @@ function js_out(){
$plugins = js_pluginscripts();
// check cache age & handle conditional request
- header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
+ header('Cache-Control: public, max-age=3600');
header('Pragma: public');
if(js_cacheok($cache,array_merge($files,$plugins))){
http_conditionalRequest(filemtime($cache));