THREE20 Cache Tturlrequestcachepolicy Buffer scheme detailed

Source: Internet
Author: User

typedef enum {

Tturlrequestcachepolicynone = 0,//No cache

Tturlrequestcachepolicymemory = 1,//Memory Cache

Tturlrequestcachepolicydisk = 2,//Disk Cache

tturlrequestcachepolicynetwork = 4,//Using HTTP protocol caching,

Tturlrequestcachepolicynocache = 8,//does not have a buffering policy and disables the use of ETag etag in my blog for a detailed description

Tturlrequestcachepolicyetag = 16 | tturlrequestcachepolicydisk,//caching policy based on HTTP Network Cache Protocol I think this is the best solution.

Tturlrequestcachepolicylocal

= (Tturlrequestcachepolicymemory | Tturlrequestcachepolicydisk),

Tturlrequestcachepolicydefault

= (Tturlrequestcachepolicymemory | Tturlrequestcachepolicydisk

| Tturlrequestcachepolicynetwork),

} Tturlrequestcachepolicy;

Author: 禚 to strong emal:zhuolaiqang@gmail.com reprint please attach this information

Postscript

Request.cachepolicy = Tturlrequestcachepolicyetag;

The premise of using this property is that the site supports etag to have ETag headers in the header returned by the site. If the site does not return ETag, then this property is the same as tturlrequestcachepolicynetwork.

Author: 禚 to strong emal:zhuolaiqang@gmail.com reprint please attach this information

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.