summaryrefslogtreecommitdiff
path: root/lib/exe/css.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/exe/css.php')
-rw-r--r--lib/exe/css.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php
index 061df662d..ad47647f0 100644
--- a/lib/exe/css.php
+++ b/lib/exe/css.php
@@ -67,10 +67,15 @@ function css_out(){
$files[DOKU_CONF.'userstyle.css'] = '';
}
- // check cache age
+ // check cache age & handle conditional request
+ header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
+ header('Pragma: public');
if(css_cacheok($cache,array_keys($files))){
+ http_conditionalRequest(filemtime($cache));
readfile($cache);
return;
+ } else {
+ http_conditionalRequest(time());
}
// start output buffering and build the stylesheet