REGRESSION (XHR Caching): Uncacheable responses sent by Rails through Apache...
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Apr 2012 20:57:10 +0000 (20:57 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Apr 2012 20:57:10 +0000 (20:57 +0000)
commitdcfe943018d09ac019a4503237093fa30f0ef2b7
tree154a88d0b6131c8801988905beeb0bbbdde5b339
parent623da1e339c270e5c12a299978df71e18b53107c
    REGRESSION (XHR Caching): Uncacheable responses sent by Rails through Apache are cached
        https://bugs.webkit.org/show_bug.cgi?id=83925
        <rdar://problem/11231790>

        Reviewed by Antti Koivisto.

        Added subtests to http/tests/cache/subresource-expiration-2.html.

        * platform/network/ResourceResponseBase.cpp:
        (WebCore::ResourceResponseBase::parseCacheControlDirectives): Honor first max-age
        instead of the last. New behavior matches both Firefox and IE.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@114165 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/cache/subresource-expiration-2-expected.txt
LayoutTests/http/tests/cache/subresource-expiration-2.html
Source/WebCore/ChangeLog
Source/WebCore/platform/network/ResourceResponseBase.cpp