RESOLVED INVALID Bug 85562
[Qt] Webkit does not honor html cache-control metatags
https://bugs.webkit.org/show_bug.cgi?id=85562
Summary [Qt] Webkit does not honor html cache-control metatags
Keith Kyzivat
Reported 2012-05-03 17:48:12 PDT
Qt Webkit does not honor html cache-control metatags: <META http-equiv="Cache-control" content="no-cache"> <META http-equiv="Pragma" content="no-cache"> <META http-equiv="Expires" content="-1"> 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 ("Binary file <x> matches"), despite directives that instruct the browser not to cache: find ~/.cache/Nokia/QtTestBrowser/data7 | xargs grep '<META http-equiv="Cache-control" content="no-cache">'
Attachments
Laszlo Gombos
Comment 1 2012-05-03 18:52:47 PDT
This is an issue with WebKit2 as well, it was just easier to reproduce with QtTestBrowser.
Simon Hausmann
Comment 2 2012-05-03 22:59:14 PDT
Is this really a WebKit bug or perhaps a bug in the Qt Network Disk Cache implementation?
zalan
Comment 3 2012-05-03 23:18:12 PDT
(In reply to comment #2) > 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
Jocelyn Turcotte
Comment 4 2014-02-03 03:20:45 PST
=== 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.
Rob Stryker
Comment 5 2015-03-16 06:17:31 PDT
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.
Note You need to log in before you can comment on or make changes to this bug.