Microsoft KB Archive/183804

= How To Specify Items to Be Cached in a .cdf File =

Article ID: 183804

Article Last Modified on 8/30/2004

-

APPLIES TO


 * Microsoft Internet Explorer 4.0 128-Bit Edition
 * Microsoft Internet Explorer 4.01 Service Pack 2
 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.5

-



This article was previously published under Q183804



SUMMARY
From a channel definition file (.cdf), you can specify which items should be cached, without having the items appear in the channel bar's item list. For example, you may wish to specify that a .wav file be downloaded as part of the subscription update so that it gets cached and is available when the user browses offline.

This article describes the method that is used to perform this function.



MORE INFORMATION
In order to specify that an item should be cached but not viewed in the channel pane, use the tag  in your .cdf file. For example, to specify that a .wav file should be cached, place this HTML in your .cdf file.    Note that in XML, an element that does not have child elements can be represented in a more compact format. For instance, the above  line could be written more compactly in this manner (note the final / at the end of the tag):



Also, when listing multiple items that are to be cached but not viewed in the channel pane, instead of marking each one with a , it is better to place them all in one sub-channel that is marked with a usage tag, as illustrated in the example below:      </CHANNEL>

<div class="references_section">