1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/17457] Help clients cache the manifest

PHPBB-17457
This commit is contained in:
Matt Friedman
2024-12-20 20:17:32 -08:00
parent 1096b094cb
commit 3ffdb4cce3

View File

@@ -93,6 +93,10 @@ class manifest
$vars = array('manifest', 'board_path');
extract($this->phpbb_dispatcher->trigger_event('core.modify_manifest', compact($vars)));
return new JsonResponse($manifest);
$response = new JsonResponse($manifest);
$response->setPublic();
$response->setMaxAge(3600);
$response->headers->addCacheControlDirective('must-revalidate', true);
return $response;
}
}