Search squid archive

Re: Pinning objects in Squid Cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13/03/2014 9:22 p.m., aditya agarwal wrote:
> Hi,
> 
> I wanted to know if there is a way to PIN certain objects in Squid's
> cache, so that they are not removed or subjected to eviction because
> of the LRU policy running in squid.
> 
> Thanks, Aditya
> 

That depends on what the objects are ... so "what exactly are you trying
to achieve?"

Meanwhile ... objects locally served up by Squid using the
/squid-internal-static/ well-known URL path prefix have it. Such things
as icons for the error pages and FTP directory listings.
 See the mime.conf file installed with your Squid on how to configure
those URL objects.


However, if you are wanting this for arbitrary objects served up elsewhere:

 * the best way is not to bother.
 Cache is a _temporary_ storage area (a type of buffer) not a long term
archive. Correctly following HTTPP protocol ensures up to date reliable
content at all times.

 * the second-best way is to simply poll your proxy with a request for
it before the replacement policy removes it. This works on the same
principle as prefetching and has all the same problems with generating
correct client headers.

Amos




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux