[Qt-jambi-interest] QNetworkAccessManager: don't cache document
Serg_HD
serg_hd at mail.ru
Tue Dec 15 12:09:33 CET 2009
Hi,
I don't want to cache concrete image on website page (using many qwebview for one site). For this I overload QNetworkAccessManager's method createRequest(), make condition for my image (if (myReq.url() == myUrl) then not apply
cache), and try in this condition:
1) myReq.setRawHeader( new QByteArray("Cache-Control"), new QByteArray("no-cache") ); //not work,
2) myReq.setRawHeader( new QByteArray("If-Modified-Since""), new QByteArray(myTime) ); //not work
3) myReq.setUrl(new QUrl(url2 + "&x=" + rand.nextInt(1000000))); //not work too, url becomes really other, but however
image in cache.
How I must abolish cash for document (in my case - image)? Thanks.
More information about the Qt-jambi-interest
mailing list