mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-24 22:35:45 +00:00
refactor(pwa): ♻️ use more approiate function to set maxage
This commit is contained in:
parent
01de2ec5f6
commit
15ed16da2a
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue