diff --git a/inc/sitemaps/class-sitemaps.php b/inc/sitemaps/class-sitemaps.php index 713a8ce8803..08304bf9083 100644 --- a/inc/sitemaps/class-sitemaps.php +++ b/inc/sitemaps/class-sitemaps.php @@ -432,7 +432,7 @@ public function xsl_output( $type ) { // Make the browser cache this file properly. $expires = YEAR_IN_SECONDS; header( 'Pragma: public' ); - header( 'Cache-Control: maxage=' . $expires ); + header( 'Cache-Control: max-age=' . $expires ); header( 'Expires: ' . $this->date->format_timestamp( ( time() + $expires ), 'D, d M Y H:i:s' ) . ' GMT' ); readfile( WPSEO_PATH . 'css/main-sitemap.xsl' );