Commit Graph

7854 Commits

Author SHA1 Message Date
Brent Simmons
295d4576e0 Save cacheControlInfo with the feed. 2024-12-01 17:10:35 -08:00
Brent Simmons
b881d2fed6 Add cacheControlInfo to feed metadata. 2024-12-01 16:54:28 -08:00
Brent Simmons
cf1c0c6197 Add CacheControlInfo.isExpired calculated property. 2024-12-01 16:54:16 -08:00
Brent Simmons
fd431c33ad Update version and build number. mac-6.1.5b3 2024-11-30 22:02:07 -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
738dac6a49 Restore the infrastructure for saving conditional GET info, since the built-in caching isn’t handling this as well as it appeared at first. 2024-11-30 20:04:56 -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
d7a2eb6b3d Edit comments. 2024-11-30 13:20:32 -08:00
Brent Simmons
8c811e75ba Skip downloading feeds from X/Twitter, since those sites will never return a feed. (X/Twitter URLs may still be in people’s feeds lists due to prior Twitter integration, that has since gone away at Twitter’s initiative.) 2024-11-30 13:18:04 -08:00
Brent Simmons
23cb45161a Remove unneeded local property. 2024-11-30 13:16:57 -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
265b7035ed Use os_log instead of print. 2024-11-30 10:27:08 -08:00
Brent Simmons
ae8bcdfd7c Update build number. mac-6.1.5b2 2024-11-29 22:40:55 -08:00
Brent Simmons
5ceef49a6f Update version and build number. 2024-11-29 22:23:17 -08:00
Brent Simmons
d052a27665 Add vertical space to Accounts preferences to make enough room for Credentials button. 2024-11-29 22:05:30 -08:00
Brent Simmons
53a27149b4 Make URL text field wrap in add-feed sheet. 2024-11-29 21:47:10 -08:00
Brent Simmons
906a985bef Fix display issue in Account prefs — don’t draw outside of bounds. 2024-11-29 21:43:42 -08:00
Brent Simmons
fb8a62b698 Restore and use func localAccountRefresher(_ refresher: LocalAccountRefresher, requestCompletedFor: URL). 2024-11-29 12:06:05 -08:00
Brent Simmons
7e42e80b41 Make downloadProgress clear about where it comes from. 2024-11-29 11:01:17 -08:00
Brent Simmons
5ef92cbd05 Make refresher non-optional because it doesn’t need to be optional. 2024-11-28 11:33:41 -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
4f4f7d6cb5 Remove unused sinceToken. 2024-11-27 20:37:51 -08:00
Brent Simmons
680c4a4ff4 Stop storing conditional GET info — rely on URLSession built-in caching to handle conditional GET. 2024-11-27 20:36:39 -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
8e54c93c6f Remove throttled feeds support. 2024-11-26 21:04:53 -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
4306542975 Read openrss.org feeds at most once an hour. 2024-11-24 20:41:33 -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
Brent Simmons
42ef44f67c Fix whitespace warnings. 2024-11-23 11:56:49 -08:00
Brent Simmons
ee55c017fa Revert inadvertent build setting change. 2024-11-23 11:55:04 -08:00
Brent Simmons
137a8e0896 Enable hardened runtime. 2024-11-23 11:52:08 -08:00
Brent Simmons
c9a56a3c6a Turn on DEAD_CODE_STRIPPING for release. 2024-11-23 11:38:48 -08:00
Brent Simmons
55c61ffd3f Remove no-longer-needed ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES setting. 2024-11-23 11:35:24 -08:00
Brent Simmons
e1f5eb24e6 Rename Embed App Extensions to Embed Foundation Extensions, per Xcode recommendation. 2024-11-23 11:35:09 -08:00
Brent Simmons
12c496a613 Add missing word “Drive”; refer to “System Settings.” 2024-11-23 11:24:25 -08:00
Brent Simmons
4986192823 Remove MAS targets. 2024-11-23 11:24:02 -08:00
Brent Simmons
932a72ff23 Fix bug in scripting support function valueInAccounts:withUniqueID:. 2024-11-23 11:15:20 -08:00