Thank you for replying to my e-mail.
1) Edit '/etc/squid/mime.conf' & added
\.asp$ image/jpeg anthony-image.gif - image +download
2) tail /var/log/squid/access.log
1.1.1.1 - - [21/Nov/2007:15:42:23 +0900] "http://www.test.com/download.asp?write=%2Fabcd%2F2007%2F20%2F96%2Ftest%2EGIF HTTP/1.1" 200 59044 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)" TCP_MISS:FIRST_UP_PARENT
1.1.1.1 - - [21/Nov/2007:15:42:28 +0900] "http://www.test.com/download.asp?write=%2Fabcd%2F2007%2F20%2F96%2Ftest%2EGIF HTTP/1.1" 200 59044 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)" TCP_MISS:FIRST_UP_PARENT
HTTP code is 200.
So I can see image file but always TCP_MISS occured.
How can I do 'TCP_MEM_HIT' or 'TCP_HIT' ?
> Look at the 'cache' directive and refresh patterns.
>
>
>
> Adrian
>
>
> On Wed, Nov 21, 2007, Seonkyu Park wrote:
>> Hello Squid users.
>>
>> I am using squid for server accelerator.
>>
>> But my squid server can't cache dynamic image.
>>
>> My origin server use not local disk.
>>
>> That use network file system and send image file using ASP function. ( response.write 'filename' )
>>
>> --------------------------------------------------------------------------
>> [user] -- (HTTP) -- [squid] -- (HTTP) -- [web server] -- (CIFS) -- [file server]
>> --------------------------------------------------------------------------
>>
>> Orign server URL like this.
>>
>> example)
>> http://www.test.com/download.asp?write=%2Fabcd%2F2007%2F20%2F96%2Ftest%2EGIF
>> http://www.test.com/download.asp?write=%2Fabcd%2F2007%2F20%2F96%2Fgood%2EGIF
>> http://www.test.com/download.asp?write=%2Fabcd%2F2007%2F20%2F96%2Fnice%2EGIF
>>
>> ....
>>
>> File of download.asp read image from file server, and then write to user.
>>
>> How can I do cache dynamic image ?
>>
>> Thank for reading this.
>>
>
> --
> - Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
> - $25/pm entry-level VPSes w/ capped bandwidth charges available in WA -
>
Received on Wed Nov 21 2007 - 00:16:01 MST
This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:02 MST