[Webkit-unassigned] [Bug 83925] New: REGRESSION (XHR Caching): Uncacheable responses sent by Rails through Apache are cached

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 13 11:46:14 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=83925

           Summary: REGRESSION (XHR Caching): Uncacheable responses sent
                    by Rails through Apache are cached
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Keywords: InRadar, Regression
          Severity: Normal
          Priority: P1
         Component: Page Loading
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ap at webkit.org
                CC: koivisto at iki.fi, japhet at chromium.org


When using Rails with Apache, it's common to have two max-age directives (one is added by Rails, another by mod_expires):

max-age=0, private, must-revalidate, max-age=60

We appear to honor the last directive instead of the first,like other browsers do.

Steps to reproduce:
1. Terminal: sudo gem install sinatra
2. Download and unzip the attached archive.
3. In Terminal, cd to the archive's directory and run 'ruby app.rb'
4. In Safari, open a new window and navigate to http://localhost:4567
5. Click the button on the page and observe the output from the ruby command above.

I confirmed that this test started to fail in r107672, although the root cause is really a pre-existing issue with memory cache (the same is reproducible with script elements).

Nate, is this something you'd be willing to look into?

<rdar://problem/11231790>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list