WWWCache.h
上传用户:zlh9724
上传日期:2007-01-04
资源大小:1991k
文件大小:2k
源码类别:

浏览器

开发平台:

Unix_Linux

  1. /*                                       Declaration of W3C Reference PERSISTENT CACHE MODULE
  2.                    DECLARATION OF W3C REFERENCE PERSISTENT CACHE MODULE
  3.                                              
  4.  */
  5. /*
  6. **      (c) COPYRIGHT MIT 1995.
  7. **      Please first read the full copyright statement in the file COPYRIGH.
  8. */
  9. /*
  10.   CACHE MANAGER
  11.   
  12.    Caching is a required part of any efficient Internet access applications as it saves
  13.    bandwidth and improves access performance significantly in almost all types of
  14.    accesses.  The Library supports two different types of cache: The memory cache and the
  15.    file cache. The two types differ in several ways which reflects their two main
  16.    purposes: The memory cache is for short term storage of graphic objects whereas the
  17.    file cache is for intermediate term storage of data objects. Often it is desirable to
  18.    have both a memory and a file version of a cached document, so the two types do not
  19.    exclude each other.
  20.    
  21.    The cache contains details of temporary disk files which contain the contents of remote
  22.    documents.  There is also a list of cache items for each URL in its anchor object.
  23.    
  24.    There are various ways of handling Expires header when met in a history list. Either it
  25.    can be ignored all together, the user can be notified with a warning, or the document
  26.    can be reloaded automatically. This flag decides what action to be taken. The default
  27.    action is HT_EXPIRES_IGNORE. In HT_EXPIRES_NOTIFY mode you can specify a message to
  28.    tell the user (NULL is valid in which case my own message pops up - watch out it might
  29.    be in Danish ;-))
  30.    
  31.    The Library has two notions of a local cache: a file cache and a memory cache. The
  32.    memory cache is handled by the client and the file cache is handled by the Library.
  33.    Often the format of a object cached in memory is in the form of a hypertext object
  34.    ready to be displayed (that is, it's already parsed).
  35.    
  36.  */
  37. #ifndef WWWCACHE_H
  38. #define WWWCACHE_H
  39. /*
  40. Library Includes
  41.  */
  42. #ifdef __cplusplus
  43. extern "C" {
  44. #endif
  45. /*
  46.  */
  47. #include "HTCache.h"
  48. /*
  49.    End of CACHE module
  50.    
  51.  */
  52. #ifdef __cplusplus
  53. } /* end extern C definitions */
  54. #endif
  55. #endif
  56. /*
  57.    End of WWWCACHE API definition  */