<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>153708</bug_id>
          
          <creation_ts>2016-01-30 08:56:26 -0800</creation_ts>
          <short_desc>[GTK] http/tests/cache/disk-cache/disk-cache-last-modified.html is failing</short_desc>
          <delta_ts>2022-11-08 00:33:00 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cdumez</cc>
    
    <cc>cgarcia</cc>
    
    <cc>koivisto</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1160462</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-01-30 08:56:26 -0800</bug_when>
    <thetext>http/tests/cache/disk-cache/disk-cache-last-modified.html has been failing since it was added in r188690:

--- /home/slave/webkitgtk/gtk-linux-64-release-tests/build/layout-test-results/http/tests/cache/disk-cache/disk-cache-last-modified-expected.txt
+++ /home/slave/webkitgtk/gtk-linux-64-release-tests/build/layout-test-results/http/tests/cache/disk-cache/disk-cache-last-modified-actual.txt
@@ -10,30 +10,30 @@
 response source: Disk cache
 
 response headers: {&quot;Last-Modified&quot;:&quot;Thu, 01 Jan 1970 00:00:00 GMT&quot;}
-response source: Network
+response source: Disk cache
 
 response headers: {&quot;Last-Modified&quot;:&quot;invalid&quot;}
-response source: Network
+response source: Disk cache
 
 --------Testing loads through memory cache (XHR behavior)--------
 response headers: {&quot;Last-Modified&quot;:&quot;Thu, 01 Jan 2000 00:00:00 GMT&quot;}
 response source: Memory cache
 
 response headers: {&quot;Last-Modified&quot;:&quot;Thu, 01 Jan 1970 00:00:00 GMT&quot;}
-response source: Network
+response source: Memory cache
 
 response headers: {&quot;Last-Modified&quot;:&quot;invalid&quot;}
-response source: Network
+response source: Memory cache
 
 --------Testing loads through memory cache (subresource behavior)--------
 response headers: {&quot;Last-Modified&quot;:&quot;Thu, 01 Jan 2000 00:00:00 GMT&quot;}
 response source: Memory cache
 
 response headers: {&quot;Last-Modified&quot;:&quot;Thu, 01 Jan 1970 00:00:00 GMT&quot;}
-response source: Network
+response source: Memory cache
 
 response headers: {&quot;Last-Modified&quot;:&quot;invalid&quot;}
-response source: Network
+response source: Memory cache
 
 PASS successfullyParsed is true</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1161251</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-02-02 04:44:29 -0800</bug_when>
    <thetext>I can&apos;t reproduce this locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1161654</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-02-03 06:06:08 -0800</bug_when>
    <thetext>This test was added to fix a workaround in CFNetwork, so the tests could be skipped in GTK+. However, I&apos;m not so sure it&apos;s a CFNetwork bug, but a problem in servers, so we might want to behave the same way Mac port does. There&apos;s an interesting discussion about this in bug #148162. The thing is that in case of an invalid date in Last-Modified header, we are getting Epoch as date, and then caching those resources. I agree with the reasoning in bug #148162 and the decision made for the Mac port as well. It&apos;s very unlikely that are breaking some site using Epoch on purpose, and I really think we would be fixing more cases than broke, anyway. What do you think?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1161697</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-02-03 09:51:24 -0800</bug_when>
    <thetext>I&apos;m confused now. If I run the test manually launching the server with Tools/Scripts/run-webkit-httpd and using WTR it gives the expected results, but if I use Tools/Scripts/run-webkit-tests the memory cache is still used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1161699</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-02-03 09:53:41 -0800</bug_when>
    <thetext>My vote is to do what Apple does, treat epoch as invalid, and bypass both caches. A small minority of sites send these broken headers: do we display them broken for four years, or do we display them slowly? I vote for slowly. If I couldn&apos;t decide based on that alone, I would still favor following what Apple does.

But, I think both options are reasonable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1910777</commentid>
    <comment_count>5</comment_count>
    <who name="Vitaly Dyackhov">vitaly</who>
    <bug_when>2022-11-07 07:44:25 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/6207</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1910978</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-08 00:33:00 -0800</bug_when>
    <thetext>Test gardening commit 256440@main (6f536b7be60e): &lt;https://commits.webkit.org/256440@main&gt;

Reviewed commits have been landed. Closing PR #6207 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>