Caching dynamic image generated on php
<p>My php script parses user's profile on other site, takes some info and generates .png image with it for certain user (script.php?username=). Each time page with these images is loaded, script runs again and again.
How can I cache images and only run script again if information it outputs was changed? It would save pretty much resources.</p>
