Better illustrate the purpose
This commit is contained in:
9
web/compromise.php
Normal file
9
web/compromise.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
header('Cache-Control: s-max-age=60, stale-while-revalidate=82800');
|
||||
sleep(5);
|
||||
print('This is a slow test with data cached for 1 min but updated smartly so that for 23 hours people will experience a fast experience. ' . date('Y-m-d H:i:s'));
|
||||
?>
|
||||
<p id="js-date"></p>
|
||||
<script type="text/javascript">
|
||||
document.getElementById('js-date').innerText = new Date().toISOString();
|
||||
</script>
|
||||
Reference in New Issue
Block a user