temporary response should not enable a successful healthcheck or cache #185 (#186)

pull/191/head
Guilherme Capilé 2024-11-14 13:05:46 -03:00 committed by GitHub
parent d9bfc19f77
commit 7f36d2624b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,10 @@
<?php
$proto = (isset($_SERVER['SERVER_PROTOCOL']))?($_SERVER['SERVER_PROTOCOL']):('HTTP/1.1');
header($proto.' 503 Service Unavailable', true);
header('cache-control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
header('retry-after: 30');
header('refresh: 30');
?>
<html>
MISP is loading...
</html>