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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user