When building our web pages from different content sources, it may be necessary to get some images from external servers (e.g. when incorporating a rss feed), which may not be as fast or as well connected as our own data center. I would like a have a means to copy respectively proxy the files into a server address that is running at our site to keep the load off the external servers possible changing the filename to hide that fact that the images were dynamically generated.
e.g. turn the following url
into something like this:
This should honor etags, if-modified-since change expires headers to make the files static and cacheable, regardless of what the originating server says.
I think I could build something like this using varnish and another web server, but maybe there is a solution already available.
This could be part of a CDN, however I do not anticipate the necessity of a real CDN since we do not have many visitors from other countries