OLD | NEW |
(Empty) | |
| 1 <?php |
| 2 if ($_GET["suborigin"]) { |
| 3 header("Suborigin: " . $_GET["suborigin"]); |
| 4 } |
| 5 ?> |
| 6 <!DOCTYPE html> |
| 7 <html> |
| 8 <script> |
| 9 var id = '<?php echo($_GET["id"]); ?>'; |
| 10 var resource_url = '<?php echo($_GET["resource"]); ?>' |
| 11 |
| 12 var is_mem_cached = window.internals.isLoadingFromMemoryCache(resource_url); |
| 13 |
| 14 fetch(resource_url, {mode: 'no-cors'}) |
| 15 .then(function(response) { |
| 16 window.parent.postMessage({'type': 'response', 'is_mem_cached': is_mem_cache
d, 'id': id}, '*'); |
| 17 }) |
| 18 .catch(function(e) { |
| 19 window.parent.postMessage({'type': 'error', 'is_mem_cached': is_mem_cached,
'id': id}, '*') |
| 20 }); |
| 21 </script> |
| 22 </html> |
OLD | NEW |