Qt4-preview-feedback Archive, February 2008
javascript cache bugs in QtWebKit of Qt4.4
Message 1 in thread
QtWebKit will cache javascript file, even ignore the modification.
How to reproduce:
1.edit 1.html
<html>
<body>
<script src="1.js"></script>
<br>
<a href="2.html">2.html</a>
</body>
</html>
Edit 1.js
var str = 'aaa';
document.write(str);
Edit 2.html
<html>
<body>
<script src="1.js"></script>
<br>
<a href="1.html">1.html</a>
</body>
</html>
2. QtWebKit load 1.html. After load, modify 1.js to var str = 'bbb';
document.write(str);
and save the changes.
3. click the link on 1.html, it will lead to 2.html It should display bbb on
2.html, but it still shows aaa
This happens in QtWebKit from Qt4.4 snapshot 20080220 and Git repository.
WebKit Windows port don't have this issue. Firefox and IE etc don't have
this issue.
I tried with QWebSettings::setMaximumPagesInCache(0) and
QWebSettings::setObjectCacheCapacities(0,0,0) . it still happens.