Files
mono/mcs/class/System.Web/Test/standalone/httpresponse/valid-cache-response.aspx
T
Miguel de Icaza d947afc6fe Tests
svn path=/trunk/mcs/; revision=48933
2005-08-26 22:51:44 +00:00

17 lines
510 B
Plaintext

<% @Page Language="C#" Debug="true" %>
<%
Response.ContentType = "text/plain";
Response.Write ("Only 'no-cache', 'public' and 'private' should be OK.\n");
foreach (string s in new string [] { "no-cache", "no-store", "public", "private", "no-transform", "must-revalidate", "proxy-revalidate", "max-age=10", "s-maxage=20", "cache-extension"} ){
Response.Write (s);
try {
Response.CacheControl = s;
Response.Output.WriteLine (" OK");
} catch {
Response.Output.WriteLine (" Failed");
}
}
%>