I managed to save the files from YouTube, it was the refresh_pattern problem,
of course. Removed the acl thingy to save all of minimum_object_size 1M, and
added refresh_pattern:
refresh_pattern . 10080 990% 999999 override-expire override-lastmod ignore-
no-cache ignore-private ignore-reload reload-into-ims
And it does save the files from YouTube:
1234369228.093 SWAPOUT 00 000002DF C9634D246260758A945C786CC86F3965 200
1234368874 1206456375 1234372474 video/x-flv 3825405/3825405 GET
http://v18.cache.googlevideo.com/videoplayback?
id=9ef4f97317b081b0&itag=5&ip=209.88.189.17®ion=0&signature=6D755B0185C07
DADB662D2977EB53C9ABA72A7B9.6D5CE93C53957C9218471EC48589649C85DD111A&sver=2&
expire=1234390473&key=yt1&ipbits=0
But when i try another size with some HTTP-headers that seem problematic it
does not cache:
HTTP/1.1 200 OK
Server: nginx/0.6.31
Date: Wed, 11 Feb 2009 14:36:03 GMT
Content-Type: image/gif
Content-Length: 3407717
Last-Modified: Sat, 04 Oct 2008 00:04:04 GMT
Connection: keep-alive
Cache-Control: no-cache, must-revalidate, no-store
Accept-Ranges: bytes
1. I thought that the refresh pattern i made covers it all - did i neglect
an option? If not, can it be the fact that i'm running the windows 2.7
version and not the 3.0 (that is only stable for Linux)?
2. Is there a way to debug the squid in order to see why it does not cache -
what prevents it from caching a certain file?
Regards,
Snayit
-- View this message in context: http://www.nabble.com/Caching-file-using-squid-tp21951802p21958237.html Sent from the Squid - Users mailing list archive at Nabble.com.Received on Wed Feb 11 2009 - 16:21:44 MST
This archive was generated by hypermail 2.2.0 : Thu Feb 12 2009 - 12:00:02 MST