Skip to content

Commit

Permalink
Added a dash to the Cache-Control header directive
Browse files Browse the repository at this point in the history
  • Loading branch information
Djennez committed Mar 18, 2020
1 parent 970324e commit 99d7c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/sitemaps/class-sitemaps.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down

0 comments on commit 99d7c0f

Please sign in to comment.