Genie 7110 Garage Door Opener User Manual


 
February 2001 Genie Application Style Guide 67
13
Chapter 13 Cache
Cache management is important for allowing quick access to previously viewed cards and
controlling the display of time-sensitive content.
Shared Feature Set: Caching
Do not leave time-sensitive data, such as stock quotes, in the cache.
Use a cache-control directive to specify how long a deck should persist in the
cache of a device.
A cache-controlled directive can prevent users from accessing outdated time-sensitive
information, such as weather, traffic, or a stock quote. Cache-control directives are at
a deck level rather than a card level.
Example 13-1
<meta http-equiv="Cache-control" content="max-age=600" forua="true"/>
In Example 13-1, the value 600 represents the number of seconds the data should be
marked as valid the cache.
Do not build an application that relies on information residing in the cache.
Openwave Caching
The default TTL (time to live) for a deck is 30 days or until memory is exhausted.
Allow the browser to prefetch the next deck when the user is likely to access the
next card.
For applications providing textual information that users are likely to access in
sequence, such as news or email.