The following search logic is used with content caching rules:
1. Search for the string in the local on-demand content directory (non-content caching) and its subdirectory structure. If a match is found, serve the file. If not, continue the search.
2. Search for the string in the content caching cache. If a match is found, serve the file. If not, continue the search.
3. Search for the string in the rules associated with publisher nodes from the top down. When a match is found, the string is handed off to the publisher. If no match is made, the request fails.
4. If the publisher finds the file, it serves the file to the subscriber's cache. The subscriber then serves the file to the media player from its cache. If the publisher does not find a match, the request results in an error.
In practice, however, if Helix Mobile Server would have found a matching file in its cache, it would have immediately checked the publisher to ensure the file was still available. If the file had been removed from the publisher, the subscriber would not serve the file to the player, even though the file resides in cache. In this way, the administrator of the publisher has some control over the content available to subscribers.
For any of this to work, the string that appears in the URL must match a rule on the subscriber. That rule, in turn, must match the subdirectory structure on the publisher. Thus, the administrator on the subscriber must carefully coordinate with the administrator on the publisher. You can use the asterisk (*) as a wildcard character in rules. In fact, Helix Mobile Server adds an implicit wildcard to the end of each rule it processes.
Perhaps the easiest method of setting up content caching is not to use any subdirectory structure at all. Just use the root of the publisher Helix Mobile Server for storage all on-demand content, and then create a "/" rule on the subscriber. Consider the following example, meant to be typed directly into RealPlayer:
rtsp://cdist_subscriber.helixserver.com:554/myfile.rm
This URL combined with a content caching rule for "/" allows for the best of both worlds: all incoming URLs to the subscriber are matched against local content, and then run through the content caching regimen.