RE: [squid-users] Re: Caching downloaded files from dynamic pages

From: Alexander K <alexanderk@dont-contact.us>
Date: Tue, 25 Sep 2007 21:34:50 +0300

Thank you for the tip, I think I got little bit further, but still no
success.

After "strip_query_terms off" I can now see more information in my
access.log.
This is the process after I have clicked the file I want, accepted the
license, pressed "Download software" and finished the download.

1190743488.718 7047 192.168.11.5 TCP_MISS/200 18463 GET
http://support.fujitsu-siemens.com/Download/ShowDescription.asp?SoftwareGUID
=1758541C-E30A-4126-B5E4-F9DBF9D9E8CC&OSID=DD13C337-8EFF-4CFB-A589-72971D7BC
BCE&Status=True&Component=WN6301A%20%2013ch.%20miniCard%20WLAN%20IEEE802.11%
20b/g%20%20(Atheros) - DIRECT/80.70.172.14 text/html

1190743491.125 454 192.168.11.5 TCP_MISS/302 646 POST
http://support.fujitsu-siemens.com/Download/Download.asp -
DIRECT/80.70.172.14 text/html

1190743492.453 1328 192.168.11.5 TCP_MISS/302 1050 GET
http://support.fujitsu-siemens.com/Download/StreamFileToBrowser.asp?Software
GUID=1758541C-E30A-4126-B5E4-F9DBF9D9E8CC - DIRECT/80.70.172.14 text/html

1190743507.062 14609 192.168.11.5 TCP_MISS/200 437188 GET
http://support.fujitsu-siemens.com/download/FileDownload/fileDownload.aspx?S
oftwareGUID=1758541C-E30A-4126-B5E4-F9DBF9D9E8CC&FileFolder=Downloadfiles&Fi
leTypeExtension=zip&FileNameClient=FSC_WN6301A_miniCard_WLAN_IEEE802_11_b_g_
7_1_0_70__1008383.zip&FileSize=436724&From=SWpoW1djPF9iW0plOGhlbWlbaB0m -
DIRECT/80.70.172.14 application/octet-stream

--
The last one is interesting; I can actually see the full uri, which is good.
If I use the full uri:
http://support.fujitsu-siemens.com/download/FileDownload/fileDownload.aspx?S
oftwareGUID=1758541C-E30A-4126-B5E4-F9DBF9D9E8CC&FileFolder=Downloadfiles&Fi
leTypeExtension=zip&FileNameClient=FSC_WN6301A_miniCard_WLAN_IEEE802_11_b_g_
7_1_0_70__1008383.zip&FileSize=436724&From=SWpoW1djPF9iW0plOGhlbWlbaB0m
It gives me the download-dialog and I can successfully download the file.
However, if I download the file, remove it and re-download, it ain't coming
from cache.
I am using the same uri both times, just copy-pasting the uri.
Now I don't have idea why the item is not being cached / why does not Squid
recognize it?
Do I need to modify mime / file assocations somehow?
Also, I think that to get this work, the string after "&From" should be
static. That leads to another question: is there way to manipulate / replace
part of uris using Squid?
What I mean by this, that everytime you are going and downloading files
manually from Fujitsu-Siemens, the "From=" field gets changed to unique,
that would cause problems when caching ("&From"-field is always different
and because of that, filename as well).
Thanks for help, I'd hope I would get this working...
Alexander
-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of RW
Sent: 25. syyskuuta 2007 17:21
To: squid-users@squid-cache.org
Subject: [squid-users] Re: Caching downloaded files from dynamic pages
On Tue, 25 Sep 2007 17:17:45 +1200 (NZST) "Amos Jeffries"
<squid3@treenet.co.nz> wrote:
> > And even though my store.log displays, that it actually saved 
> > something (filesize matches, 1263443 bytes), I cannot find the file 
> > and all downloads from Fujitsu-Siemens are coming from their site, 
> > not from squid (=slow and eating bandwith).
> >
> 
> If there is any sort of changing query-string object that can 
> currently still stop squid identifying two URI as having identical 
> content. Both get fetched and stored seperately.
Set
strip_query_terms off
so you can see the full URIs
Received on Tue Sep 25 2007 - 12:29:26 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:03 MDT