[Qt-qml] Setting CacheLoadControlAttribute For Items

Michael Dippold mike at dippold.com
Wed Aug 4 16:21:15 CEST 2010


Thanks for the quick response.  I modified my apache config to add a
future expire date and that worked.

Thanks!
Mike

On 8/3/10, warwick.allison at nokia.com <warwick.allison at nokia.com> wrote:
> > 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