Skip to content

Commit d18224c

Browse files
committed
Cache the manifest for 1 hour in client browsers
1 parent c6ea224 commit d18224c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

controller/manifest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ public function handle(): JsonResponse
8787
];
8888
}
8989

90-
return new JsonResponse($manifest);
90+
$response = new JsonResponse($manifest);
91+
$response->setPublic();
92+
$response->setMaxAge(3600);
93+
$response->headers->addCacheControlDirective('must-revalidate', true);
94+
return $response;
9195
}
9296
}

0 commit comments

Comments
 (0)