Commit Graph

32 Commits

Author SHA1 Message Date
Brent Simmons
cb96a42054 Update lastOpenRSSOrgFeedRefresh when allowing to refresh an openrss.org feed. 2024-12-12 20:47:02 -08:00
Brent Simmons
7d3772a250 Space out openrss.org feed refreshes. 2024-12-12 20:40:28 -08:00
Brent Simmons
3cb17805d8 Get rid of extraneous spaces. 2024-12-12 20:39:55 -08:00
Brent Simmons
4a644eae9c Add SpecialCases.swift to have a single place for code for special cases such as openrss.org URLs. 2024-12-12 20:38:41 -08:00
Brent Simmons
8d1cc48f7f Use special user-agent with openrss.org, so they can better understand which NetNewsWire clients have the bandwidth fixes and which do not. 2024-12-10 19:33:06 -08:00
Brent Simmons
86631b20eb Fix a couple bugs with combined refresh/sync progress that gets reported in status bar. 2024-12-08 18:38:34 -08:00
Brent Simmons
f82ce34019 Fix comment. 2024-12-02 21:50:04 -08:00
Brent Simmons
41ef5ca08d Make HTTPResponse429 a struct. 2024-12-02 21:50:00 -08:00
Brent Simmons
a2934cd308 Make CacheControlInfo and HTTPResponse429 use same names for things. 2024-12-02 21:39:07 -08:00
Brent Simmons
e5ac628619 Move Cache-Control responsibility to LocalAccountRefresher. 2024-12-02 21:20:20 -08:00
Brent Simmons
6558135191 Make isExpired public. 2024-12-02 20:58:23 -08:00
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