http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube#ConfigExamples.2BAC8-DynamicContent.2BAC8-YouTube.2BAC8-Discussion.FixedThis patch don't worked for me, so I changed it a bit:1) I'd like to ignore redirects, only when request is a storeurl request.2) I dont like to force a MISS to "304 NOT MODIFIED" responsesWhat do you think about?ThanksPaolo MalfattiCIDIS CamiriIndex: src/client_side.c===================================================================--- src/client_side.c (revision 134)+++ src/client_side.c (working copy)@@ -2408,6 +2408,17 @@ is_modified = 0; } }+ /* bug fix for 302 moved_temporarily loop bug when using storeurl*/+ if (r->store_url && rep->sline.status >= 300 && rep->sline.status <400 && rep->sline.status != 304) {+ if (httpHeaderHas(&e->mem_obj->reply->header, HDR_LOCATION)) {+ debug(33, 2) ("clientCacheHit: Redirect Loop Detected:%s\n",http->uri);+ http->log_type = LOG_TCP_MISS;+ clientProcessMiss(http);+ return;+ }+ }+ /* bug fix end here*/ stale = refreshCheckHTTPStale(e, r); debug(33, 2) ("clientCacheHit: refreshCheckHTTPStale returned %d\n",stale); if (stale == 0) {
Hi, i’m using storeurl.pl script to cache youtube videos files and I
followed instructions in:
- [squid-users] Youtube, storeurl and 302 redirection Paolo Malfatti
- Re: [squid-users] Youtube, storeurl and 302 redirect... Eliezer Croitoru
- Re: [squid-users] Youtube, storeurl and 302 redi... Hasanen AL-Bana
- Re: [squid-users] Youtube, storeurl and 302 redirect... Paolo Malfatti
- Re: [squid-users] Youtube, storeurl and 302 redi... Eliezer Croitoru
- Re: [squid-users] Youtube, storeurl and 302 ... Christian Loth
- Re: [squid-users] Youtube, storeurl and ... Hasanen AL-Bana
- [squid-users] Re: Youtube, storeurl... babajaga
- Re: [squid-users] Re: Youtube, ... Eliezer Croitoru
- [squid-users] Re: Youtube, ... x-man
- Re: [squid-users] Re: Youtu... Eliezer Croitoru