Re: refresh a cached object using IMS

From: Duane Wessels <wessels>
Date: Wed, 14 Aug 96 12:39:50 -0700

jyjung@cosmos.kaist.ac.kr writes:

>
>
> I have some questions about TCP_REFRESH objects.
>
> When user hits "reload", as I know, all cached information in Squid
>
> is ignored, but still "If Modified Since" is sent directly to the
>
> original server.
>
>
> My Question: according to source code, TCP_REFERSH objects are processed
>
> in icpProcessMiss. and in the begginning of icpProcessMiss, any
>
> reference to the requested object is released and new entry is created.
>
> Then, what if original server sends "Not modified"? In this case, just
>
> small header is returened. How could Squid find released entity?

Look in icp_hit_or_miss(). There, for 'Pragma: no-cache' requests
we set "entry = NULL" to ignore any existing entries for this URL.

When we start getting data back from the IMS reqeust, if its a '200'
response, then we junk the old entry and start using the new one.

Duane W.
Received on Wed Aug 14 1996 - 12:39:51 MDT

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