<?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>85562</bug_id>
          
          <creation_ts>2012-05-03 17:48:12 -0700</creation_ts>
          <short_desc>[Qt] Webkit does not honor html cache-control metatags</short_desc>
          <delta_ts>2015-03-16 06:17:31 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://jsbin.com/obilez</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Keith Kyzivat">kamaji</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hausmann</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>maheshk</cc>
    
    <cc>rob.stryker</cc>
    
    <cc>vestbo</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>615839</commentid>
    <comment_count>0</comment_count>
    <who name="Keith Kyzivat">kamaji</who>
    <bug_when>2012-05-03 17:48:12 -0700</bug_when>
    <thetext>Qt Webkit does not honor html cache-control metatags:
&lt;META http-equiv=&quot;Cache-control&quot; content=&quot;no-cache&quot;&gt;
&lt;META http-equiv=&quot;Pragma&quot; content=&quot;no-cache&quot;&gt;
&lt;META http-equiv=&quot;Expires&quot; content=&quot;-1&quot;&gt;

These tags are ignored when creating http cache.
Below are some steps for reproducing this on Linux.

1. Clear any existing QtTestBrowser cache by removing the following directory:
   rm ~/.cache/Nokia/QtTestBrowser
2. Start QtTestBrowser (Tools/Scripts/run-launcher --qt)
3. Tick the Use Disk Cache option in the Settings menu.
4. Enter the following URL in the url bar and hit enter: http://jsbin.com/obilez 
   or take the attached html content, stick it on a webserver, and point QtTestBrowser at that.
5. Run the following command to show that the content was cached (&quot;Binary file &lt;x&gt; matches&quot;), despite directives that instruct the browser not to cache:
   find ~/.cache/Nokia/QtTestBrowser/data7 | xargs grep &apos;&lt;META http-equiv=&quot;Cache-control&quot; content=&quot;no-cache&quot;&gt;&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>615886</commentid>
    <comment_count>1</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2012-05-03 18:52:47 -0700</bug_when>
    <thetext>This is an issue with WebKit2 as well, it was just easier to reproduce with QtTestBrowser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>615973</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2012-05-03 22:59:14 -0700</bug_when>
    <thetext>Is this really a WebKit bug or perhaps a bug in the Qt Network Disk Cache implementation?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>615984</commentid>
    <comment_count>3</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2012-05-03 23:18:12 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Is this really a WebKit bug or perhaps a bug in the Qt Network Disk Cache implementation?
This is a webkit bug. It lacks cache-control meta tags support from the beginning and surprisingly webkit based browsers get away with this.

https://lists.webkit.org/pipermail/webkit-dev/2007-November/002717.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>975446</commentid>
    <comment_count>4</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2014-02-03 03:20:45 -0800</bug_when>
    <thetext>=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1077392</commentid>
    <comment_count>5</comment_count>
    <who name="Rob Stryker">rob.stryker</who>
    <bug_when>2015-03-16 06:17:31 -0700</bug_when>
    <thetext>This bug should be re-opened. It is not a qt bug but a webkit bug in general. There are many other implementations and examples where webkit is not respecting cache-control flags, either from HTML or from specific headers passed in. 

Please re-open this bug. I am unable to re-open it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>