Forging Last-Modified and Expiry times for FTP?

From: Michael Dean <Michael.Dean@dont-contact.us>
Date: Thu, 13 May 1999 10:48:08 +1000 (EST)

hi there

we have a squid proxy behind our Gauntlet firewall. When an FTP request is
made the firewall s/w doesn't give any information back to squid other
than the names of the files when a directory listing is made and when a
file is downloaded only the file is returned. ie. no size information, no
modification time is available. Which basically means that squid will not
cache *any* FTP requests.

a typical store.log entry looks like ..

926555516.125 RELEASE FFFFFFFF 200 -1 -1 -1 application/octet-stream
      -1/294494 GET ftp://ftp.sage-au.org.au/pub/gnu/findutils/findutils-4.1.tar.gz

Is there some way to tell squid to cache FTP requests even when the
'date', 'lastmod', 'expires' and the 'expect-len' values aren't known??

I've tried hacking the http-gw source code but I'm not entirely sure just
what headers I need to return to get it to work...

I've tried accessing local FTP sites thru squid, which cache just fine.
ie.

924854457.776 SWAPOUT 0000CD59 200 924854446 -1 -2 application/octet-stream
      -1/2653184 GET ftp://localsite/test.exe

hopefully some bright spark out there has an idea for me.

mike

--
 Michael.Dean@detir.qld.gov.au ,-_|\  UNIX Support
                              /     * Dept of Employment, Training
  Phone: +61 7 3247 5724      _,-._/ and Industrial Relations
    Fax: +61 7 3247 9111      ^    v  http://unix/
                              |
                    yes I *am* using pine-4.10
Received on Wed May 12 1999 - 18:26:26 MDT

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