On 02/22/2011 12:14 PM, Nelson Perez wrote:

The thing that puzzles me the most however is that the cache seems to be
kept lock down in this cache.db file. I could check that some videos must be
there since the Cache Inspector utility gives me a hit when I try something

Not sure I understand this. You asking why the object is still in cache even though it's expired ? There's no proactive "purge" of the cached objects, only if something is fetching it would it possibly trigger a revalidation or refresh.

with a regular expression like "mp4". But I would really like to check it
out myself. So, is there any way to inspect more closely this cache.db file?
by the name I would say it looks like a sqlite3 database, but I must be
wrong.

The format is Traffic Server specific. The Cache Inspector is generally the way to look for things in the cache, but sounds like you've already tried it. If you want to verify that a request could be fulfilled out of cache, you can test the URL, with an addition request header of "Cache-Control: only-if-cached". E.g.

curl -D - o /dev/null -s -H "Cache-Control: only-if-cached" http://someurl.com/some/path/foo.mp4


-- Leif

Reply via email to