How to configure squid for retrieving (and caching) directly my static resources?

Posted by fabien7474 on Server Fault See other posts from Server Fault or by fabien7474
Published on 2010-02-20T14:49:44Z Indexed on 2010/04/08 5:03 UTC
Read the original article Hit count: 334

Filed under:
|
|
|
|

I have an Apache/Tomcat/Spring tc Server running on CentOS EC2 VM.

I would like to install squid on the same machine as a proxy for retrieving (directly i.e. without forwarding the request to Apache/Tomcat) and caching static content ONLY identified by URIs : /images, /css or /js.

Other URIs should be forwarded to the normal Web Server and not cached.

Since I am a newbie, I didn't find from squid documentation how to configure squid for this desired behavior (and if it is even possible).

Could you please help me and tell me how should I configure squid for this purpose?

Thank you.

© Server Fault or respective owner

Related posts about squid

Related posts about reverse-proxy