Skip to content

Commit

Permalink
Cache the manifest for 1 hour in client browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
iMattPro committed Dec 21, 2024
1 parent c6ea224 commit d18224c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion controller/manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ public function handle(): JsonResponse
];
}

return new JsonResponse($manifest);
$response = new JsonResponse($manifest);
$response->setPublic();
$response->setMaxAge(3600);
$response->headers->addCacheControlDirective('must-revalidate', true);
return $response;
}
}

0 comments on commit d18224c

Please sign in to comment.