Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to force QWebPage to store objects with no-cache in their response headers?
a.moallemi2 last edited by
QNetworkDiskCache* diskCache = new QNetworkDiskCache(this);
But the problem is that the first page of most of the websites come with "Cache-Control: must-revalidate" or "Pragma: no-cache" in their response headers. In these cases, QWebPage will not save the corresponding object in the cache directory. I was wondering if there is a way to bypass this and force the Qt to save all the objects in its cache regardless of those response header fields?