Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Comments

Added option for disk cache use#26

Merged
ariya merged 2 commits intoariya:masterfrom
jontuk:jontuk-network-disk-cache
Apr 12, 2011
Merged

Added option for disk cache use#26
ariya merged 2 commits intoariya:masterfrom
jontuk:jontuk-network-disk-cache

Conversation

@jontuk
Copy link

@jontuk jontuk commented Apr 12, 2011

My branch adds knowledge of flags --disk-cache=[yes|no], defaulting to no. If yes the NetworkAccessManager will have its cache set to a QNetworkDiskCache with location of QDesktopServices::CacheLocation. This allows for conditional GET requests which may have a response of 'Not Modified' (304) to reduce network transfer and increase performance in many scenarios.

@ariya ariya merged commit e82619d into ariya:master Apr 12, 2011
@ariya
Copy link
Owner

ariya commented Apr 12, 2011

Merged. Thanks a lot!

@niksite
Copy link

niksite commented Aug 28, 2011

Probably, we should also have control (via cli parameter) over cache size (which is just 50Mb by default)?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants