refactor(pwa): ♻️ use more approiate function to set maxage

This commit is contained in:
alistair3149 2023-01-17 15:21:39 -05:00
parent 01de2ec5f6
commit 15ed16da2a
No known key found for this signature in database

View file

@ -58,7 +58,7 @@ class ApiWebappManifest extends ApiBase {
$resultObj->addValue( null, 'shortcuts', $this->getShortcuts() );
$main = $this->getMain();
$main->setCacheControl( [ 's-maxage' => 86400, 'max-age' => 86400 ] );
$main->setCacheMaxAge( '604800' );
$main->setCacheMode( 'public' );
}
@ -67,7 +67,6 @@ class ApiWebappManifest extends ApiBase {
*
* @param MediaWikiServices $services
* @param Config $config
* @param MediaWikiServices $services
* @return array
*/
private function getIcons( $config, $services ) {