[Mono-bugs] [Bug 77775][Nor] New - Cannot set custom Cache-Control response headers

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Mar 13 11:39:35 EST 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by nede at aliquant.com.


--- shadow/77775	2006-03-13 11:39:35.000000000 -0500
+++ shadow/77775.tmp.30120	2006-03-13 11:39:35.000000000 -0500
@@ -0,0 +1,50 @@
+Bug#: 77775
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details: Fedora Core 4
+Status: NEW   
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: nede at aliquant.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Cannot set custom Cache-Control response headers
+Description of Problem:
+Setting the Cache-Control HTTP response header through Response.AddHeader()
+or Response.AppendHeader() throws an exception.  This does not occur in
+Microsoft's .NET Framework.
+Steps to reproduce the problem:
+Execute the following line in the OnInit handler of any page:
+Context.Response.AppendHeader("Cache-Control", "no-cache, no-store");
+Actual Results:
+The following exception is thrown:
+System.ArgumentException: CacheControl property only allows `public',
+`private' or no-cache, for different uses, use Response.AppendHeader in
+<0x000f6> System.Web.HttpResponse:set_CacheControl (System.String value) in
+<0x000f4> System.Web.HttpResponse:AppendHeader (System.String name,
+System.String value) in <0x00039> ASP.TestPage_aspx:Page_Init
+(System.Object sender, System.EventArgs e)
+Expected Results:
+No exception should be thrown, and an HTTP header named "Cache-Control"
+with a value of "no-cache, no-store" should be in the HTTP response.
+How often does this happen? 
+Every time.
+Additional Information:
+Using Mono 1.1.13-4.

More information about the mono-bugs mailing list