php - Best way to "proxy" resource server-side?
Get the solution ↓↓↓I'm trying to proxy only the web-site part ofstreamable.com
(because access to its web front end is blocked here) and my current implementation pretty straightforward:
<body>
<?php
$html = file_get_contents('https://streamable.com/' . $_GET['path']);
echo $html;
?>
</body>
I just output fetched HTML. This way I can get access to webfront and all requests to CDN are native i.e. direct connection. While this works fine I was curious if there are some way to improve upon it? My only guess so far is probably some caching, but I'm not sure what type and how. So I guess essentially my question is - what kind of simple built-on caching solution I can implement?
Running Apache on free Googiehost if that matters.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: mark bundle as not supporting multiuse
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.