On 9/12/19 4:25 AM, fansari wrote: > In my scenrio (squid 3.5.23) I have several clients which download content. > > Now I want to achieve two things: if one client has already downloaded the > content the second client requesting the same content should take it from > the squid cache. When handling the second client request, can you allow Squid to ask the origin server whether the content is still the same as it was when the first client downloaded it? If you can, will the origin server respond with a 304 (Not Modified) to Squid's conditional request? > But: when this content resource on the internet is changing the squid should > not give a HIT but a MISS and refresh the content the next time a client is > requesting it. When handling this "next time" request, can you allow Squid to ask the origin server whether the content is still the same as it was when the first client downloaded it? If you can, will the origin server respond with the fresh content to Squid's conditional request? > It is not clear to me how to achieve this behaviour. > The application (server on internet) sends headers like this: > > cache-control: public, max-age=0 > last-modified: Thu, 12 Sep 2019 07:30:56 GMT > etag: W/"6699e3-16d2461dba1" The answers to the above four questions may help us find solution(s) to your problem. Alex. _______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users