tmp-platform-swr/web/slow.php

9 lines
266 B
PHP
Raw Normal View History

2021-03-08 03:57:46 +00:00
<?php
header('Cache-Control: s-max-age=10');
sleep(5);
2021-03-08 14:40:45 +00:00
print('This is a slow test with 10s caching. ' . date('Y-m-d H:i:s'));
2021-03-08 03:57:46 +00:00
?>
<p id="js-date"></p>
<script type="text/javascript">
document.getElementById('js-date').innerText = new Date().toISOString();
</script>