tmp-platform-swr/web/index.php

13 lines
387 B
PHP
Raw Normal View History

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