[asp.net] Fix for bug #648407. HttpCachePolicy must use the value passed to AppendCac...
authorMarek Habersack <grendel@twistedcode.net>
Tue, 26 Oct 2010 23:25:07 +0000 (01:25 +0200)
committerMarek Habersack <grendel@twistedcode.net>
Tue, 26 Oct 2010 23:27:45 +0000 (01:27 +0200)
mcs/class/System.Web/System.Web/HttpCachePolicy.cs

index ab4586ea61d77e4fefe227f96d7fb5bc2500ad96..e1d75584fe9a4fe35f6470748a26bbded43405aa 100644 (file)
@@ -353,7 +353,12 @@ namespace System.Web
                                cc = String.Concat (cc, ", no-store");
                        if (set_no_transform)
                                cc = String.Concat (cc, ", no-transform");
-
+                       if (cache_extension != null && cache_extension.Length > 0) {
+                               if (!Strng.IsNullOrEmpty (cc))
+                                       cc = String.Concat (cc, ", ");
+                               cc = String.Concat (cc, cache_extension.ToString ());
+                       }
+                       
                        headers.Add ("Cache-Control", cc);
 
                        if (last_modified_from_file_dependencies || etag_from_file_dependencies)