mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
13 lines
453 B
HTML
13 lines
453 B
HTML
<!DOCTYPE html>
|
|
<body>BFCached<a href="target.html">next</a></body>
|
|
<script>
|
|
window.addEventListener('DOMContentLoaded', () => {
|
|
const iframe = document.createElement('iframe');
|
|
const url = new URL(location.href);
|
|
url.hostname = url.hostname === 'localhost' ? '127.0.0.1' : 'localhost';
|
|
url.pathname = '/cached/bfcache/worker-iframe.html';
|
|
iframe.src = url.toString();
|
|
document.body.appendChild(iframe);
|
|
}, false);
|
|
</script>
|