[squid-users] how to influence the generation of cached objects's key?
hello, all: in one squid, there are many web sites, but some static files have the same content. and by default, squid would cache the same-content files many times, which would decrease the storage usage. in order to make use of storage, it is better to save the same-content file only one time. to achieve that, I want to affect the key generation of cached object. that is, given the two url of www.a.com/sale/someFunction.js and www.a.com/sale/someFunction.js, and the javascript (someFunction.js) files have the same content. with squid, can I cut the part before someFunction.js when the url is given to generate cached object's key? thanks in advance! -- Best Regards rmn190
[squid-users] index key generation mechanism?
hi all: For the file of somejs.js, there are two urls referring to it, for example: url1 is http://www.a.com/somejs.js; and url2 is http://www.a.com/somejs.js;. by default, squid would use the above urls to generate certain key that would be used as index key to write/read the somejs.js file to/from memory. My question is that: could I affect the index key generation, so that squid could save the somejs.js file in memory only one object. for example, for url1, we can trim http://www.a.com/somejs.js; to somejs.js and http://www.a.com/somejs.js; to somejs.js, then the key would be somejs.js, e.g. use the file name (or some variants based on it) as index key. this way, we can save the two different urls (the referred files have the same content) as only one object in Squid. is it possible? thanks in advance! -- Best Regards rmn190
[squid-users] what does Squid do if two files have the same content and different file name?
Hi, all: In our company, the business logic is common: different URL may refer to the same content files. so in order to optimize the usage of memory, it is better that Squid would keep only object cached when the content is equal to each other for several files. does squid support this feature? if so, how can I configure it? thanks. --- Best Regards rmn190
[squid-users] anyone describe the model of how Squid manage the memory?
hi, all: I am new to Squid, and I am assigned to learn how Squid manage to memory, in order to make best use of the Squid. there are some problems about the memory management for Squid: 1, if two files have the same content, such as two Javascript files, then how Squid deal with the two files in memory? dose it treat it as one file and keep the two file name somewhere? 2, how does the Squid define the level of hot data? and what is the distribution strategy of hot data like?and How can I affect the distribution strategy ? thanks.