Hello,

I have a QWebView and want to cache all network traffic so that can interact with the exact same webpage later when offline.

I first looked at QNetworkDiskCache and I understand would need to set PreferCache and then override the Expires header to avoid the content expiring. However the cache interface just takes a QUrl, so would only be for GET requests and I also need to cache POST requests.

If I override QNetworkAccessManager::createRequest is there a way to create a QNetworkReply instance that already has the content instead of downloading? If so then the network traffic could be manually cached and loaded here.

thanks,
Richard