Subversion Repositories oidplus

Rev

Rev 366 | Rev 380 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 366 Rev 379
Line 62... Line 62...
62
        $out .= process_file(__DIR__ . '/userdata/styles/setup_add.css');
62
        $out .= process_file(__DIR__ . '/userdata/styles/setup_add.css');
63
}
63
}
64
 
64
 
65
# ---
65
# ---
66
 
66
 
67
$etag = md5($out);
-
 
68
header("Etag: $etag");
-
 
69
header('Content-MD5: '.$etag); // RFC 2616 clause 14.15
67
httpOutWithETag($out, 'text/css', 'oidplus_setup.css');
70
if (isset($_SERVER['HTTP_IF_NONE_MATCH']) && (trim($_SERVER['HTTP_IF_NONE_MATCH']) == $etag)) {
-
 
71
        header("HTTP/1.1 304 Not Modified");
-
 
72
} else {
-
 
73
        header('Content-Type:text/css');
-
 
74
        echo $out;
-
 
75
}
68