Skip to content

Commit

Permalink
MDL-44650 Remove invalid meta tags "pragma" and "expires"
Browse files Browse the repository at this point in the history
  • Loading branch information
danielneis committed Mar 14, 2014
1 parent c0e8812 commit db64fd6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 1 addition & 4 deletions lib/installlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,7 @@ function install_print_help_page($help) {
<link rel="stylesheet" type="text/css" href="'.$CFG->wwwroot.'/install/css.php" />
<title>'.get_string('installation','install').'</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="0" />';

echo '</head><body>';
</head><body>';
switch ($help) {
case 'phpversionhelp':
print_string($help, 'install', phpversion());
Expand Down
4 changes: 0 additions & 4 deletions lib/outputrenderers.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,6 @@ public function standard_head_html() {
$output = '';
$output .= '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' . "\n";
$output .= '<meta name="keywords" content="moodle, ' . $this->page->title . '" />' . "\n";
if (!$this->page->cacheable) {
$output .= '<meta http-equiv="pragma" content="no-cache" />' . "\n";
$output .= '<meta http-equiv="expires" content="0" />' . "\n";
}
// This is only set by the {@link redirect()} method
$output .= $this->metarefreshtag;

Expand Down

0 comments on commit db64fd6

Please sign in to comment.