|
Re: [piranha@xxxxxxxxxxxxxxx: Bug#402490: polipo: Incorrectly caches 302 re: msg#00025web.polipo.user
> Subject: Bug#402490: polipo: Incorrectly caches 302 responses, breaking > LiveJournal Oh my, what a silly bug -- I've confused 301 and 302. I'm attaching a fix -- could you please confirm whether it fixes LiveJournal? Thanks, Juliusz diff -rN -u old-polipo/server.c new-polipo/server.c --- old-polipo/server.c 2006-12-11 16:32:34.000000000 +0100 +++ new-polipo/server.c 2006-12-11 16:32:34.000000000 +0100 @@ -2179,7 +2179,7 @@ code != 403 && code != 404 && code != 405 && code != 416) { new_object->cache_control |= (CACHE_NO_HIDDEN | OBJECT_LINEAR); } else if(code != 200 && code != 206 && - code != 300 && code != 302 && code != 304 && + code != 300 && code != 301 && code != 304 && code != 410) { if(new_object->expires < 0 && !(cache_control.flags & CACHE_PUBLIC)) { new_object->cache_control |= CACHE_NO_HIDDEN; ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: dontCacheRedirects isn't reliable: 00025, Juliusz Chroboczek |
|---|---|
| Next by Date: | Re: windows version: 00025, Juliusz Chroboczek |
| Previous by Thread: | [piranha@xxxxxxxxxxxxxxx: Bug#402490: polipo: Incorrectly caches 302 responses, breaking LiveJournal]i: 00025, Tom Ellis Huckstep |
| Next by Thread: | Re: Bug#402490: polipo: Incorrectly caches 302 responses, breaking LiveJournal: 00025, J.P. Larocque |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |