зеркало из https://github.com/mono/mail-archives.git
208 строки
6.3 KiB
HTML
208 строки
6.3 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 485557] New: Response.ClearHeaders reset HttpCacheability to private
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20485557%5D%20New%3A%20Response.ClearHeaders%20reset%0A%20HttpCacheability%20to%20private&In-Reply-To=">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="087043.html">
|
|
<LINK REL="Next" HREF="087295.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 485557] New: Response.ClearHeaders reset HttpCacheability to private</H1>
|
|
<B>bugzilla_noreply at novell.com</B>
|
|
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20485557%5D%20New%3A%20Response.ClearHeaders%20reset%0A%20HttpCacheability%20to%20private&In-Reply-To="
|
|
TITLE="[Mono-bugs] [Bug 485557] New: Response.ClearHeaders reset HttpCacheability to private">bugzilla_noreply at novell.com
|
|
</A><BR>
|
|
<I>Mon Mar 16 06:40:40 EDT 2009</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="087043.html">[Mono-bugs] [Bug 485536] New: If inaccessible member is found, extension methods aren't considered.
|
|
</A></li>
|
|
<LI>Next message: <A HREF="087295.html">[Mono-bugs] [Bug 485557] Response.ClearHeaders reset HttpCacheability to private
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#87044">[ date ]</a>
|
|
<a href="thread.html#87044">[ thread ]</a>
|
|
<a href="subject.html#87044">[ subject ]</a>
|
|
<a href="author.html#87044">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=485557">https://bugzilla.novell.com/show_bug.cgi?id=485557</A>
|
|
|
|
|
|
Summary: Response.ClearHeaders reset HttpCacheability to
|
|
private
|
|
Classification: Mono
|
|
Product: Mono: Class Libraries
|
|
Version: 2.4.x
|
|
Platform: All
|
|
OS/Version: All
|
|
Status: NEW
|
|
Severity: Normal
|
|
Priority: P5 - None
|
|
Component: Sys.Web
|
|
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mhabersack at novell.com</A>
|
|
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">informatique.internet at fiducial.fr</A>
|
|
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
|
|
Found By: ---
|
|
|
|
|
|
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.9.0.7)
|
|
Gecko/2009021906 Firefox/3.0.7
|
|
|
|
On MS.NET 1.1 if you call Response.ClearHeaders, it will reset
|
|
Response.Cache.SetCacheability to default : HttpCacheability.Private
|
|
|
|
On mono 2.4 (svn branch) it does not
|
|
|
|
IMPORTANT : Response.Clear() doesn't reset Cacheability settings only
|
|
ClearHeaders()
|
|
|
|
Reproducible: Always
|
|
|
|
Steps to Reproduce:
|
|
1. try this inline aspx
|
|
<%@ Page Language="C#" %>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"<A HREF="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"</A>>
|
|
<html>
|
|
<head>
|
|
<title>testcache</title>
|
|
<script language="CS" runat="server">
|
|
void Page_Load(object sender, System.EventArgs e)
|
|
{
|
|
// Put user code to initialize the page here
|
|
Console.WriteLine("Page_Load");
|
|
Response.Cache.SetCacheability(HttpCacheability.NoCache);
|
|
if (Request.QueryString["private"]!=null) {
|
|
Console.WriteLine("Setting Private");
|
|
Response.Cache.SetCacheability(HttpCacheability.Private);
|
|
}
|
|
|
|
lbl1.Text="coucou";
|
|
if (Request.QueryString["clear"]!=null) {
|
|
Response.Clear();
|
|
Response.End();
|
|
}
|
|
if (Request.QueryString["clearheaders"]!=null) {
|
|
Response.ClearHeaders();
|
|
Response.End();
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form id="form1" runat="server">
|
|
<asp:Label id="lbl1" runat="server">Label</asp:Label>
|
|
</form>
|
|
</body>
|
|
</html>
|
|
|
|
2.GET "<A HREF="http://localhost:8080/testcache.aspx?clearheaders=true"">http://localhost:8080/testcache.aspx?clearheaders=true"</A> -e
|
|
|
|
Actual Results:
|
|
Cache-Control: no-cache
|
|
Connection: close
|
|
Date: Mon, 16 Mar 2009 10:27:55 GMT
|
|
Pragma: no-cache
|
|
Server: Mono.WebServer/0.1.0.0 Unix
|
|
Content-Length: 0
|
|
Content-Type: text/html; charset=utf-8
|
|
Expires: -1
|
|
Client-Date: Mon, 16 Mar 2009 10:27:55 GMT
|
|
Client-Peer: 127.0.0.1:8080
|
|
Client-Response-Num: 1
|
|
Set-Cookie: ASPSESSION=86230015CA6C545D3E9E1BEC; path=/
|
|
X-AspNet-Version: 1.1.4322
|
|
|
|
|
|
|
|
Expected Results:
|
|
Cache-Control: private
|
|
Connection: close
|
|
Date: Mon, 16 Mar 2009 10:27:55 GMT
|
|
Server: Mono.WebServer/0.1.0.0 Unix
|
|
Content-Length: 0
|
|
Client-Date: Mon, 16 Mar 2009 10:27:55 GMT
|
|
Client-Peer: 127.0.0.1:8080
|
|
Client-Response-Num: 1
|
|
X-AspNet-Version: 1.1.4322
|
|
|
|
--
|
|
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
|
|
------- You are receiving this mail because: -------
|
|
You are the QA contact for the bug.
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="087043.html">[Mono-bugs] [Bug 485536] New: If inaccessible member is found, extension methods aren't considered.
|
|
</A></li>
|
|
<LI>Next message: <A HREF="087295.html">[Mono-bugs] [Bug 485557] Response.ClearHeaders reset HttpCacheability to private
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#87044">[ date ]</a>
|
|
<a href="thread.html#87044">[ thread ]</a>
|
|
<a href="subject.html#87044">[ subject ]</a>
|
|
<a href="author.html#87044">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
|
|
mailing list</a><br>
|
|
</body></html>
|