How does one set multiple cache-control directives in ASP.NET
        Posted  
        
            by strongopinions
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by strongopinions
        
        
        
        Published on 2010-05-20T19:59:42Z
        Indexed on 
            2010/05/20
            20:00 UTC
        
        
        Read the original article
        Hit count: 415
        
cache-control
|ASP.NET
I have to have several certain cache-control directives set on an ASP.NET page in order to pass a Hailstorm security scan. For example, it wants me to have Cache-control: no-cache="set-cookie" in addition to Cache-control: no-cache
I have been setting the latter with the following line in my C# codebehind: Response.CacheControl = "no-cache"; Is there a special way to indicate both directives at once? Do I just separate them with a semicolon?
© Stack Overflow or respective owner