I'm trying to get my header rounder Caching. I have the following code in vb.net:
With HttpContext.Current.Response .Cache.SetCacheability(HttpCacheability.Public) .Cache.SetRevalidation(HttpCacheRevalidation.AllCaches) .Cache.SetLastModified(Now) .Cache.SetExpires(DateTime.UtcNow.AddSeconds(120)) .Cache.SetMaxAge(TimeSpan.FromSeconds(120)) End With Which returns the following headers:
Cache-Control: public, no-cache="Set-Cookie", must-revalidate, max-age=120 Content-Type: application/xml; charset=utf-8 Expires: Mon, 22 Aug 2016 13:54:36 GMT Last-Modified: Mon, 22 Aug 2016 13:52:36 GMT But I'm trying to figure out what is setting no-cache="Set-Cookie" and how can I switch that on or off?