Elgg  Version 2.3
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
clearfix elgg elgg elgg elgg page header
Definition: admin.css.php:127
GNU GENERAL PUBLIC LICENSE June Free Software Inc Franklin Fifth MA USA Everyone is permitted to copy and distribute verbatim copies of this license document
Definition: GPL-LICENSE.txt:4