mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 02:18:56 +00:00
[ticket/17457] Help clients cache the manifest
PHPBB-17457
This commit is contained in:
parent
1096b094cb
commit
3ffdb4cce3
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue