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