Re: cached files don't transfer

From: Robert Barta <>
Date: Thu, 13 Feb 1997 21:10:32 +0100

>>>Christoph Kukulies said:
 --> What can I do about it? Is there a way to flush the cache? E.g.
 --> send suiqd a signal to cause it flush the cache?
 --> Could it be that the original - which was fetched from the
 --> german microsoft site - was incomplete itself?

Might be. More probably, the FTP run into a timeout and gave up
delivering the file. AFAIK in FTP the server never tells the client
how many bytes will come the way.

In situations like these I use the squid "client" program to force
a reload. For squid challenged we have provided a trivial CGI application
where they can enter an URL in a web form.


$yourproxy = "";

use CGI;
$query = new CGI;

require HTTP::Request;
$request = new HTTP::Request 'GET', "$Q::URL";
$request->header('Pragma' => 'no-cache');

require LWP::UserAgent;
$ua = new LWP::UserAgent;
$ua->proxy(['http', 'gopher', 'ftp'], $yourproxy);

$response = $ua->request($request);
print "<BLOCKQUOTE>\n";
if ($response->is_success) {
    print "URL <A HREF=\"$Q::URL\">$Q::URL</A> has been reloaded.\n";
} else {
    print $response->error_as_HTML;
print "</BLOCKQUOTE>\n";

Received on Thu Feb 13 1997 - 11:41:43 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:26 MST