Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
cache_handler.php
Go to the documentation of this file.
1 <?php
2 // if 500 is returned, output will not be shown to the user.
3 header('Content-Type: application/javascript;charset=utf-8');
4 header('Cache-Control: no-cache, must-revalidate');
5 ?>
6 //<script>
7 !function(){
8  if (!window.__cache_handler) {
9  window.__cache_handler = 1;
10  var msg = 'Update your web server configuration (e.g. .htaccess). See docs/admin/upgrading';
11  console.log(msg);
12  var html = '<h3 style="color:red">' + msg + '</h3>';
13  document.querySelector('body').insertAdjacentHTML('afterbegin', html);
14  }
15 }();
html
Definition: admin.css.php:36