Bug 85562
| Summary: | [Qt] Webkit does not honor html cache-control metatags | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Keith Kyzivat <kamaji> |
| Component: | WebKit Qt | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | hausmann, laszlo.gombos, maheshk, rob.stryker, vestbo, zalan |
| Priority: | P3 | Keywords: | Qt, QtTriaged |
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://jsbin.com/obilez | ||
Keith Kyzivat
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Laszlo Gombos
This is an issue with WebKit2 as well, it was just easier to reproduce with QtTestBrowser.
Simon Hausmann
Is this really a WebKit bug or perhaps a bug in the Qt Network Disk Cache implementation?
alan
(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
=== 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
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.