Re: Using HTTP cache control for invalidating a cache of parsed objects

Brian Smith <[email protected]>
Newsgroups gmane.comp.mozilla.devel.netlib
Message-ID <575965077.89564.1320698462235.JavaMail.root@zimbra1.shared.sjc1.mozilla.com>
Brian Smith wrote:
> I don't understand your example very well. Why wouldn't the normal
> HTTP cache work as is? What is happening in the higher-level cache?

I see now based on the word "parsed" in the subject line. If it were me, I would try this strategy first:

Ask the HTTP cache for the unparsed resource If the HTTP cache didn't return something new, then keep your parsed objects as is, otherwise rebuild them. Rely on the server to properly specify cache-control directives to avoid revalidations, so that the cache only has to fetch the resources when they expire and/or are evicted.

This assumes that the cache implements an effective (LRU) eviction scheme.

By the way, disk space has become a scarce resource again because of mobile. Make sure you have a good strategy for managing whatever disk space you take up for your higher-level cache.

Cheers,
Brian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.