The documentation on RequestCacheLevel.BypassCache
doesn't explain much on the internal working of setting this with HttpWebRequest
. Some questions I have on it:
NoCacheNoStore
& Reload
which do set headers?To answer my own question:
HttpWebRequest
does make use of the IE cache and RequestCacheLevel.BypassCache
is refering to that cache.NoCacheNoStore
both avoid the cache; however, BypassCache
will load to the cache so if you do a future request it will be there. Reload
does similar but the headers allow proxies to return from their cache whereas BypassCache
tells proxies to ignore their cache too.