Always save cache-control info for feeds.

This commit is contained in:
Brent Simmons committed 2026-03-07 14:01:59 -08:00
1 parent 2a10090618
commit f712ec440a
1 file changed
+2 -6
@@ -154,12 +154,8 @@ import os
return
}
if url.isOpenRSSOrgURL {
// Supported only for openrss.org. Cache-Control headers are
// otherwise not intentional for feeds, unfortunately.
if let cacheControlInfo = CacheControlInfo(urlResponse: httpResponse) {
feed.cacheControlInfo = cacheControlInfo
}
if let cacheControlInfo = CacheControlInfo(urlResponse: httpResponse) {
feed.cacheControlInfo = cacheControlInfo
}
let dataHash = data.md5String