> What problem are you trying to solve? I want to have cached copy of page when original server responds 404.
> That's already the case. With the exception of 410, all errors are > uncachable unless they are explicitly marked as cachable by the origin > server. See http.c around line 1020. But it is cached actually for me. Polipo compiled from http://www.pps.jussieu.fr/~jch/software/files/polipo/polipo-20080907.tar.gz, here is some testcase (copied with output): # cd /var/cache/polipo/www.google.com # kill -USR1 $( pgrep polipo ) # sleep 1 # rm -f ./* # kill -USR2 $( pgrep polipo ) # ls # curl --proxy 127.0.0.1:40608 www.google.com/12345 > /dev/null % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 5043 0 5043 0 0 13618 0 --:--:-- --:--:-- --:--:-- 13703 # sleep 2m # ls 5DGlUfN9bOnC+UuGLV9aWg== # cat * HTTP/1.1 404 Not Found Content-Length: 5043 Date: Mon, 19 Oct 2009 16:42:26 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT Cache-Control: private Content-Type: text/html; charset=ISO-8859-1 Server: gws X-XSS-Protection: 0 X-Polipo-Location: http://www.google.com/12345 X-Polipo-Access: Mon, 19 Oct 2009 16:42:26 GMT X-Polipo-Body-Offset: 768 <html><head><meta http-equiv=content-type content="text/html; charset=ISO-8859-1"><title>404 - Page Not Found</title><style> [ next skipped ] ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Polipo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/polipo-users
