Commit Graph

21 Commits

Author SHA1 Message Date
Brent Simmons cf1c0c6197 Add CacheControlInfo.isExpired calculated property. 2024-12-01 16:54:16 -08:00
Brent Simmons e57e3c98ef Use CacheControlInfo to pay attention to the Cache-Control http response header and drop requests that are made too soon. We need to be nice to servers. 2024-11-30 22:01:58 -08:00
Brent Simmons 80c78b65d0 Use the URLRequest containing the conditional GET info. 2024-11-30 20:54:43 -08:00
Brent Simmons b56a788474 Provide conditional GET info to DownloadSession. 2024-11-30 20:46:57 -08:00
Brent Simmons 670e046b9b Handle more classes of redirects. Remember 400-499 (except for 429) responses during the current app session and ignore those URLs (until after next app launch). 2024-11-30 18:09:05 -08:00
Brent Simmons 2342c62df1 Add missing (because new-ish) redirect case. 2024-11-30 18:08:02 -08:00
Brent Simmons d25728a018 Combine two DownloadProgress, sync and download-feeds, into one DownloadProgress in CloudKitAccountDelegate. 2024-11-30 12:47:29 -08:00
Brent Simmons 72f7a7cadf Fix downloadProgress for local account. 2024-11-27 22:26:38 -08:00
Brent Simmons ece6e521e5 Delete unneeded LICENSE file (now that RSWeb is local to app). 2024-11-27 20:46:35 -08:00
Brent Simmons 0e8eac3c56 Rename OneShotDownload to Downloader. Use built-in caching support. 2024-11-27 20:32:36 -08:00
Brent Simmons a4a41ddfbd Edit comment. 2024-11-27 20:14:42 -08:00
Brent Simmons 337d711d21 Remove unused parts of DownloadInfo. 2024-11-26 22:17:47 -08:00
Brent Simmons b6ff613888 Create task with URL instead of URLRequest. 2024-11-26 22:13:22 -08:00
Brent Simmons 248fe49af4 Simplify local feed downloading. 2024-11-26 22:03:23 -08:00
Brent Simmons 7b8e0bd1af Use built-in caching NSURLSession .useProtocolCachePolicy. 2024-11-26 21:05:26 -08:00
Brent Simmons 2f090111b3 Add support for 429 responses. 2024-11-26 20:04:46 -08:00
Brent Simmons 15e839a961 Delete whitespace. 2024-11-24 21:06:39 -08:00
Brent Simmons e2bdfd6830 Add additional http response codes, include 429 Too Many Requests. 2024-11-24 21:06:27 -08:00
Brent Simmons 4d72ef05da Add Cache-Control response header. 2024-11-24 21:06:09 -08:00
Brent Simmons ec84ce618e Set httpMaximumConnectionsPerHost to 1 to be better for sites like openrss.org. 2024-11-24 11:35:09 -08:00
Brent Simmons 934892658a Make RSWeb a local module. 2024-11-24 11:32:29 -08:00