-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Http: fix how we treat must-revalidate
We calculated the expiry at time of download by looking at Max-Age, but as long as must-revalidate was true we would just perform the network request anyway. One issue this, further, highlights is our PreferNetwork and PreferCache options having no behavioral differences while being documented to do different things. They both consult the cache first and returns any non-stale data from there. Fixes: QTBUG-128484 Pick-to: 6.8 Change-Id: I24b62e2bb072446e463482a778da7cfbd82a6835 Reviewed-by: Mate Barany <[email protected]>
- Loading branch information
Showing
2 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters