There are several differences
SetNoStore essentially stops the browser (and any network resource, such as CDN) from saving any part of the response or request, which includes saving to temporary files. This will install the NO-STORE HTTP 1.1 header
SetNoServerCaching will essentially stop the server from saving files, in ASP.NET There are several levels of caching, only data, partial queries, full pages and SQL data. This call should stop the HTTP requests (Full and Partial) that are stored on the server. This method should not set cache control headers or store or store cache.
There is also
Response.Cache.SetCacheability(HttpCacheability.Public); Response.Cache.SetMaxAge(new TimeSpan(1, 0, 0));
as a possible way to set the cache, this will set the content-expires header.
For a CDN, you probably want to set the content-expires header so that it knows the CDN when to get new content if it gets a HIT. You probably donβt want the cache or not storage, as this would cause an update on every HIT, therefore, in essence, you will void any advantage that the CDN brings to you, except that they may have faster a basic connection with the end user than your current provider, but that would be insignificant.
source share