tmp-platform-swr/web/index.php
2021-03-08 04:57:46 +01:00

13 lines
387 B
PHP

<?php
header('Cache-Control: s-max-age=10, stale-while-revalidate=20');
sleep(5);
print('This is a slow test. ' . date('Y-m-d H:i:s'));
?>
<ul>
<li><a href="./slow.php">Slow</a></li>
<li><a href="./slow-but-fast.php">Slow but fast</a></li>
</ul>
<p id="js-date"></p>
<script type="text/javascript">
document.getElementById('js-date').innerText = new Date().toISOString();
</script>