Re: [squid-users] Caching file using squid

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 12 Feb 2009 11:34:59 +1300 (NZDT)

>
> 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

Oooh, don;t do any banking through thsi proxy. :)

You'd be better off setting the default (matches EVERY object on the
Internet) to the safe values.
Adding a new entry at the top of the list for just the youtube
"videoplayback" etc, patterns.

>
> 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&region=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)?
>

That site also provide no-store. Which it not covered by your overrides.

Amos
Received on Wed Feb 11 2009 - 22:35:06 MST

This archive was generated by hypermail 2.2.0 : Thu Feb 12 2009 - 12:00:02 MST