I have a PHP file that contains a specific URL of an image with a GET parameter.
This is loaded via my server (due to privacy).
How can I have the PHP file cached with a specific parameter so that the image does not always have to be loaded?
Example:
mywebsite.com/imageproxy.php?url=https://someimage.com/cat.jpg
Current away:
the webserver (my site) gets the image (cat.jpg) from the external webserver on every request and displays it.
Desired way:
The first time the image is retrieved. After that the cached image is output directly instead of retrieving it again.
This is loaded via my server (due to privacy).
How can I have the PHP file cached with a specific parameter so that the image does not always have to be loaded?
Example:
mywebsite.com/imageproxy.php?url=https://someimage.com/cat.jpg
Current away:
the webserver (my site) gets the image (cat.jpg) from the external webserver on every request and displays it.
Desired way:
The first time the image is retrieved. After that the cached image is output directly instead of retrieving it again.