我如何在我自己写的代理软件中缓存WEB页面?

dreamlysky 2004-05-04 10:23:15
有哪位知道怎么缓存吗?分不够可以加,谢谢了
...全文
30 1 点赞 打赏 收藏 举报
写回复
1 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
蒋晟 2004-05-04
An application uses the CreateUrlCacheEntry and CommitUrlCacheEntry functions to create a cache entry.

CreateUrlCacheEntry accepts the URL, expected file size, and file extension. The function then creates a local file name for saving the cache entry corresponding to the URL and file extension.

Using the local file name, write the data into the local file using standard C/C++ functions or Windows functions. After the data has been written to the local file, the application should call CommitUrlCacheEntry.

CommitUrlCacheEntry accepts the URL, local file name, expire and last modified times, cache entry type, header data and header data size, and file extension. The function then caches data in the file specified in the cache storage and associates it with the given URL
  • 打赏
  • 举报
回复
相关推荐
发帖
HTML/XML
加入

3055

社区成员

VC/MFC HTML/XML
申请成为版主
帖子事件
创建了帖子
2004-05-04 10:23
社区公告
暂无公告