Re: [squid-users] Caching Expired Objects - One Small Step Forward

2007-10-08 Thread Tek Bahadur Limbu
Hi Solomon, Solomon Asare wrote: Hi, --- Manoj_Rajkarnikar [EMAIL PROTECTED] wrote: Great job solomon. Many of us have been trying to achieve similar with youtube and google vids. this will help a great deal. how big of a cachedir do you keep for youtube vids. should be quite a big to be

Re: [squid-users] Caching Expired Objects - One Small Step Forward

2007-10-08 Thread Solomon Asare
Hi, --- Tek Bahadur Limbu [EMAIL PROTECTED] wrote: Are you intending to run a single cache of 500 GB in size or a couple of proxy caches amounting to 500 GB in size? It's because running a 500 GB cache in a single machine is going to cause you problems along the way. Such a large cache

Re: [squid-users] Caching Expired Objects - One Small Step Forward

2007-10-08 Thread Adrian Chadd
On Mon, Oct 08, 2007, Solomon Asare wrote: If for some reasons, your cache gets corrupted, it might take a very long time to fix it and I am sure that Squid's median response might will get higher. Anyway, it's just my suggestion. Now that you have mentioned it I will do some

Re: [squid-users] Caching Expired Objects - One Small Step Forward

2007-10-08 Thread Solomon Asare
Hi, --- Adrian Chadd [EMAIL PROTECTED] wrote: That said, you're currently caching the videos in the apache proxy and not in the Squid proxy. Adrian Thanks for the info on large file sizes and memory requirements. I store the objects in squid, not in apache. The apache is a

Re: [squid-users] Caching Expired Objects - One Small Step Forward

2007-10-08 Thread Adrian Chadd
On Mon, Oct 08, 2007, Solomon Asare wrote: Thanks for the info on large file sizes and memory requirements. I store the objects in squid, not in apache. The apache is a non-caching proxy. Essentially, it rewrites the headers to clear the no-store, expiration, etc., limitations. Thats all.

Re: [squid-users] Caching Expired Objects - One Small Step Forward

2007-10-08 Thread Solomon Asare
Hi, --- Adrian Chadd [EMAIL PROTECTED] wrote: I'll have to look some more into it later on. Squid could probably be patched to do what you're using Apache for.. Adrian That will be great, but what I don't understand is why they don't want to make such a static object cacheable.

Re: [squid-users] Caching Expired Objects - One Small Step Forward

2007-10-08 Thread Adrian Chadd
On Mon, Oct 08, 2007, Solomon Asare wrote: That will be great, but what I don't understand is why they don't want to make such a static object cacheable. Microsoft, Google, and those whose traffic take up most of the Internet's capacity should make their content cacheable so as to help all

Re: [squid-users] Caching Expired Objects - One Small Step Forward - WARNING

2007-10-08 Thread Solomon Asare
Hi All, pls should anyone want to try the scripts I posted, do not use /tmp. I irretrievably trashed my 300+ rules which have been built over a week. I now have to crawl up all over again. I wonder why I didn't see this coming. You may use /var/log/squid/. Thanks, solomon.

Re: [squid-users] Caching Expired Objects - One Small Step Forward - WARNING

2007-10-08 Thread Manoj_Rajkarnikar
Ah.. a Gotcha !! Noted. Thanks Manoj On Mon, 8 Oct 2007, Solomon Asare wrote: Hi All, pls should anyone want to try the scripts I posted, do not use /tmp. I irretrievably trashed my 300+ rules which have been built over a week. I now have to crawl up all over again. I wonder why I didn't

Re: [squid-users] Caching Expired Objects - One Small Step Forward

2007-10-07 Thread Solomon Asare
Hi All, Hi All, a small success: I have set a an apache2.2 server as a proxy without caching as a parent proxy to my squid. I pass my youtube video clips through this parent. The apache is on the same machine as the squid. Using the mod_header module in apache, I cleaned out all the

Re: [squid-users] Caching Expired Objects - One Small Step Forward

2007-10-07 Thread Solomon Asare
Hi All, the long skelatel howto: THE ENVIROMENT. Ubuntu, Squid 2.6, Apache 2.2, a small ISP with about 11% www.youtube.com traffic, 2Mbps on submarine fibre to the US cost about US$5,000 - US$7,000 over here - Accra, Ghana. THE PROBLEM Some Youtube clips are not cacheable, even with the overides

Re: [squid-users] Caching Expired Objects - One Small Step Forward

2007-10-07 Thread Manoj_Rajkarnikar
On Sun, 7 Oct 2007, Solomon Asare wrote: Hi All, the long skelatel howto: 8. COMMENTS This is only one of many ways that this goal can be achieved and certailnly not the best being a non-guru, although a determined linux user. I guess the features I couldn't find in squid2.6-stable that made

Re: [squid-users] Caching Expired Objects - One Small Step Forward

2007-10-07 Thread Solomon Asare
Hi, --- Manoj_Rajkarnikar [EMAIL PROTECTED] wrote: Great job solomon. Many of us have been trying to achieve similar with youtube and google vids. this will help a great deal. how big of a cachedir do you keep for youtube vids. should be quite a big to be able to cache the vids in

Re: [squid-users] Caching Expired Objects - One Small Step Forward

2007-09-27 Thread Solomon Asare
Hi All, a small success: I have set a an apache2.2 server as a proxy without caching as a parent proxy to my squid. I pass my youtube video clips through this parent. The apache is on the same machine as the squid. Using the mod_header module in apache, I cleaned out all the worrisome headers in

Re: [squid-users] Caching Expired Objects

2007-09-26 Thread Henrik Nordstrom
On mån, 2007-09-24 at 07:42 -0700, zulkarnain wrote: I'm having the same problem, any solution to handle this? thanks! Solution: 0. Make sure the cache directive has been disabled. The distributed configuration file blocks caching of URLs with ? or cgi-bin in them.. 1. Understand why the

Re: [squid-users] Caching Expired Objects

2007-09-24 Thread zulkarnain
I'm having the same problem, any solution to handle this? thanks! Zul --- Solomon Asare [EMAIL PROTECTED] wrote: Hi All, sorry, the refresh_pattern looked like: refresh_pattern -i get\_video\?video\_id\=.*youtube\.com 10080 990% reload-into-ims ignore-no-cache override-expire

Re: [squid-users] Caching Expired Objects

2007-09-23 Thread Solomon Asare
Hi All, I have had some success in caching expired objects with squid3 as shown below: 1190548054.719 SWAPOUT 00 0018 55122D5A03E0C43DBA15AFDF9225215B 200-1 -1 1190548026 video/flv 1626399/1626399 GET

Re: [squid-users] Caching Expired Objects

2007-09-23 Thread Solomon Asare
Hi All, sorry, the refresh_pattern looked like: refresh_pattern -i get\_video\?video\_id\=.*youtube\.com 10080 990% reload-into-ims ignore-no-cache override-expire ignore-private ignore-no-store Regards, solomon. --- Solomon Asare [EMAIL PROTECTED] wrote: Hi All, I have had

Re: [squid-users] Caching Expired Objects

2007-09-19 Thread Solomon Asare
Hi Henrik, I have tried quite a lot, eg: refresh_pattern -i \.flv$ 10080 990% 99 reload-into-ims ignore-no-cache It caches only those objects which have not already expired that is with the right combinations of Last-Modified or ETag minimum_expiry_time; as you explained earlier.

Re: [squid-users] Caching Expired Objects

2007-09-19 Thread Henrik Nordstrom
On ons, 2007-09-19 at 01:45 -0700, Solomon Asare wrote: Hi Henrik, I have tried quite a lot, eg: refresh_pattern -i \.flv$ 10080 990% 99 reload-into-ims ignore-no-cache It caches only those objects which have not already expired that is with the right combinations of

Re: [squid-users] Caching Expired Objects

2007-09-19 Thread Solomon Asare
Hi Henrik, --- Henrik Nordstrom [EMAIL PROTECTED] wrote: Have you tried override-expire? yes, I have tried overide-expire without success, as in: refresh_pattern -i \.flv$ 10080 990% 99 ignore-no-cache override-expire ignore-private Thanks, solomon.

Re: [squid-users] Caching Expired Objects

2007-09-19 Thread Henrik Nordstrom
On ons, 2007-09-19 at 05:36 -0700, Solomon Asare wrote: yes, I have tried overide-expire without success, as in: refresh_pattern -i \.flv$ 10080 990% 99 ignore-no-cache override-expire ignore-private And what do the response headers look like for the object in question?

Re: [squid-users] Caching Expired Objects

2007-09-19 Thread Solomon Asare
Hi Henrik, --- Henrik Nordstrom [EMAIL PROTECTED] wrote: And what do the response headers look like for the object in question? Some Header Info from my logs on the objects that will not cache: Keep-Alive: 300\r\nProxy-Connection: keep-alive\r\n] [HTTP/1.1 200 OK\r\nPragma:

Re: [squid-users] Caching Expired Objects

2007-09-19 Thread Henrik Nordstrom
On ons, 2007-09-19 at 12:40 -0700, Solomon Asare wrote: Connection: Keep-Alive\r\n] [HTTP/1.1 200 OK\r\nPragma: no-cache\r\nExpires: Sat, 17 Jan 1981 8:00:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate\r\nContent-Type: video/flv\r\nContent-Length: 7672205\r\n Are they

Re: [squid-users] Caching Expired Objects

2007-09-19 Thread Solomon Asare
Hi Henrik, it looks hopeful, I will try your suggestion, Squid 3. Thanks again. I will report back. Already, just after deploying squid for about a week, I am saving 20% on banndwidth. Thanks, solomon. --- Henrik Nordstrom [EMAIL PROTECTED] wrote: On ons, 2007-09-19 at 12:40 -0700, Solomon

Re: [squid-users] Caching Expired Objects

2007-09-18 Thread Solomon Asare
Hi Henrik, thanks for your insightful response. However, the object is a .flv file that hasn't changed in months. The origin server certainly doesn't want the object cached, but I want to. Any leads that can help me achieve this? Regards, solomon. --- Henrik Nordstrom [EMAIL PROTECTED] wrote:

Re: [squid-users] Caching Expired Objects

2007-09-18 Thread Adrian Chadd
On Tue, Sep 18, 2007, Solomon Asare wrote: Hi Henrik, thanks for your insightful response. However, the object is a .flv file that hasn't changed in months. The origin server certainly doesn't want the object cached, but I want to. Any leads that can help me achieve this? * set your

Re: [squid-users] Caching Expired Objects

2007-09-18 Thread Henrik Nordstrom
On tis, 2007-09-18 at 02:55 -0700, Solomon Asare wrote: This is the exact problem I have that I am trying to resolve, not querry string issues. If only I can overide the lack of Last-Modified, Etag and not meeting minimum_expiry_time conditions. There would be no use doing so. All you would

Re: [squid-users] Caching Expired Objects

2007-09-18 Thread Solomon Asare
Hi Henrik, since you say so, I have rather been toying with the idea of saving these supposedly expired objects in an apache document root and using the url_rewrite of the squid to fetch the objects from my apache server. I hope the bandwidth savings will justify the bandwidth cost in repopulating

Re: [squid-users] Caching Expired Objects

2007-09-18 Thread Henrik Nordstrom
On tis, 2007-09-18 at 09:25 -0700, Solomon Asare wrote: Hi Henrik, since you say so, I have rather been toying with the idea of saving these supposedly expired objects in an apache document root and using the url_rewrite of the squid to fetch the objects from my apache server. I hope the

[squid-users] Caching Expired Objects

2007-09-17 Thread Solomon Asare
Hi All, please, to recast, how do I cache expired objects. I get responses with expiry dates being in the past from some servers that I will want to cache. Regards, solomon.

Re: [squid-users] Caching Expired Objects

2007-09-17 Thread Adrian Chadd
On Mon, Sep 17, 2007, Solomon Asare wrote: Hi All, please, to recast, how do I cache expired objects. I get responses with expiry dates being in the past from some servers that I will want to cache. refresh_pattern adrian

Re: [squid-users] Caching Expired Objects

2007-09-17 Thread Solomon Asare
Hi, just to clarify: I don't mean getting a HIT, just caching the object into my store. Any link to a refresh_pattern that will cache an object that has expired for about 60 secs by the time you fetch it? Regards, solomon. --- Adrian Chadd [EMAIL PROTECTED] wrote: On Mon, Sep 17, 2007,

Re: [squid-users] Caching Expired Objects

2007-09-17 Thread Amos Jeffries
Solomon Asare wrote: Hi, just to clarify: I don't mean getting a HIT, just caching the object into my store. Any link to a refresh_pattern that will cache an object that has expired for about 60 secs by the time you fetch it?