[Qt-qml] Setting CacheLoadControlAttribute For Items
warwick.allison at nokia.com
warwick.allison at nokia.com
Wed Aug 4 05:53:17 CEST 2010
> I was wondering if there is a way to set the cache control within qml.
> I would like to set the control to QNetworkRequest::PreferCache as I
> know the data will not change on my server.
Do you control the server? If so, publishing a reasonable Expires header on the content should work (with the added benefit that you can still occasionally update the content). If that doesn't work, then there is a bug in QNetworkAccessManager.
Note that by default qmlviewer does not turn on caching (see -netcache option).
--
Warwick
More information about the Qt-qml
mailing list