Hi, i have a servlet which returns content of a video file: like this: http://127.0.0.1:8080/videoServlet?id=1 http://127.0.0.1:8080/videoServlet?id=2 I hit that servlet thru squid as the proxy. I do this to query if squid does cache the video file: ./squidclient -H "Cache-Control: only-if-cached\n" "http://127.0.0.1:8080/videoServlet?id=1" it returns with HTTP/1.0 504 Gateway Time-out Server: squid/2.6.STABLE14 Date: Wed, 08 Aug 2007 22:00:12 GMT Content-Type: text/html Content-Length: 1281 Expires: Wed, 08 Aug 2007 22:00:12 GMT X-Squid-Error: ERR_ONLY_IF_CACHED_MISS 0 X-Cache: MISS from jquinlin@xxxxxxxxx Via: 1.0 yinglcs@xxxxxxxxx:3128 (squid/2.6.STABLE14) Proxy-Connection: close $ more store.log 1186609994.145 RELEASE -1 FFFFFFFF 54457283DABA71194223B5B5BF8014A0 504 1186609 994 0 1186609994 text/html 1281/1281 GET http://127.0.0.1:8080/videoServlet? 1186610013.441 RELEASE -1 FFFFFFFF 6AA007F1BD84F4086D9BEDA68D34F87A 504 1186610 013 0 1186610013 text/html 1281/1281 GET http://127.0.0.1:8080/videoServlet? 1186610253.872 RELEASE -1 FFFFFFFF F97D264D23027AF13CD3FCCA681CA726 200 1186610 249 -1 1186613849 video/mp4 22416354/22416354 GET http://127.0.0.1:8080/v ideoServlet? 1186610286.310 RELEASE -1 FFFFFFFF 78245F6883152488370DD6484637C217 504 1186610 286 0 1186610286 text/html 1281/1281 GET http://127.0.0.1:8080/videoServlet? 1186610412.425 RELEASE -1 FFFFFFFF F4A568F813C4EE3ED930B74D114BB417 504 1186610 412 0 1186610412 text/html 1281/1281 GET http://127.0.0.1:8080/videoServlet? Can you please tell me why squid can't cache a video file? Thank you.