[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
No known key found for this signature in database

View file

@ -93,6 +93,10 @@ class manifest
$vars = array('manifest', 'board_path'); $vars = array('manifest', 'board_path');
extract($this->phpbb_dispatcher->trigger_event('core.modify_manifest', compact($vars))); 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;
} }
} }