[Mono-bugs] [Bug 404083] New: Problems with Cache (headers) in mono ASP.NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jun 26 08:13:29 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=404083


           Summary: Problems with Cache (headers) in mono ASP.NET
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: informatique.internet at fiducial.fr
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


There's two problems :

1. Response.Cache.SetCacheability should be set to private by default according
to :
http://msdn.microsoft.com/en-us/library/system.web.httpcacheability(VS.80).aspx
(on mono it seems to be set to no-cache by default)

2. Expires headers is set using the current culture -> With french culture we
have this : 

"Expires: jeu., 26 juin 2008 13:56:13 GMT"  -> BAD

it sould be : 

"Expires: Thu, 26 Jun 2008 13:56:13 GMT"

So i've reproduced the bug with mono 1.2.6, 1.9 and svn.

I think it's a major issue because it actually disable the client cache for any
other locale than the en-US one...

Here's a little test case : 

                protected override void OnLoad (EventArgs e)
                {
                        base.OnLoad (e);
                        Response.Clear();
                        // On mono it seems to be HttpCacheability.NoCache by
default
                       
Response.Cache.SetCacheability(HttpCacheability.Private);
                        Response.Expires=120;
                       
Response.WriteFile("/home/hubert/Documents/images/system2.png");
                        Response.End();

                }
with fr_FR.UTF8 locale
with wireshark you have these headers

HTTP/1.0 200 OK

Date: Thu, 26 Jun 2008 11:56:13 GMT

Server: Mono.WebServer/0.1.0.0 Unix

X-AspNet-Version: 1.1.4322

Content-Length: 54538

Expires: jeu., 26 juin 2008 13:56:13 GMT

Cache-Control: private

Content-Type: text/html; charset=utf-8

Keep-Alive: timeout=15, max=92

Connection: Keep-Alive


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list