We want to cache images that are stored on Amazon S3. In the preferred approach, Squid runs behind Apache (on the same server), where a rewriterule assures that only image requests that are stored on S3 are handled by Squid. All other HTTP requests should go directly to Apache.
Is this possible? And how does this setup look like in terms of squid.config, rewriterule, etc?
Here's a sample image stored on S3 (using a CNAME that points to a bucket):
http://static.assetdeli.com/aston1.png cheers, Ivo