diff --git a/PocketTrailer Today Extension/Info.plist b/PocketTrailer Today Extension/Info.plist index c1ccc388..51f20dd9 100644 --- a/PocketTrailer Today Extension/Info.plist +++ b/PocketTrailer Today Extension/Info.plist @@ -17,11 +17,11 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 1.6.9 + 1.6.10 CFBundleSignature ???? CFBundleVersion - 1475 + 1476 NSExtension NSExtensionMainStoryboard diff --git a/PocketTrailer WatchKit App/Info.plist b/PocketTrailer WatchKit App/Info.plist index b284ce0e..e721c43b 100644 --- a/PocketTrailer WatchKit App/Info.plist +++ b/PocketTrailer WatchKit App/Info.plist @@ -17,11 +17,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.6.9 + 1.6.10 CFBundleSignature ???? CFBundleVersion - 1475 + 1476 UISupportedInterfaceOrientations UIInterfaceOrientationPortrait diff --git a/PocketTrailer WatchKit Extension/Info.plist b/PocketTrailer WatchKit Extension/Info.plist index 0235c8ac..815dfdf7 100644 --- a/PocketTrailer WatchKit Extension/Info.plist +++ b/PocketTrailer WatchKit Extension/Info.plist @@ -17,11 +17,11 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 1.6.9 + 1.6.10 CFBundleSignature ???? CFBundleVersion - 1475 + 1476 CLKComplicationPrincipalClass $(PRODUCT_MODULE_NAME).ComplicationDataSource CLKComplicationSupportedFamilies diff --git a/PocketTrailer/Info.plist b/PocketTrailer/Info.plist index 6918282d..c0994106 100644 --- a/PocketTrailer/Info.plist +++ b/PocketTrailer/Info.plist @@ -39,7 +39,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.6.9 + 1.6.10 CFBundleSignature ???? CFBundleURLTypes @@ -54,7 +54,7 @@ CFBundleVersion - 1475 + 1476 CoreSpotlightContinuation ITSAppUsesNonExemptEncryption diff --git a/Shared/API.swift b/Shared/API.swift index 4cae2997..603ffb10 100644 --- a/Shared/API.swift +++ b/Shared/API.swift @@ -106,6 +106,9 @@ final class API { let config = URLSessionConfiguration.default config.httpShouldUsePipelining = true + config.requestCachePolicy = .useProtocolCachePolicy + config.timeoutIntervalForRequest = 60 + config.urlCache = URLCache(memoryCapacity: 32 * 1024 * 1024, diskCapacity: 1024 * 1024 * 1024, diskPath: cacheDirectory) config.httpAdditionalHeaders = ["User-Agent" : userAgent] return URLSession(configuration: config, delegate: nil, delegateQueue: sessionCallbackQueue) }() @@ -1596,7 +1599,7 @@ final class API { let expandedPath = path.hasPrefix("/") ? S(server.apiPath).appending(pathComponent: path) : path let url = URL(string: expandedPath)! - var request = URLRequest(url: url, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 60.0) + var request = URLRequest(url: url) var acceptTypes = [String]() if shouldSyncReactions { acceptTypes.append("application/vnd.github.squirrel-girl-preview") diff --git a/Trailer/Info.plist b/Trailer/Info.plist index 4f5b224a..5cc38594 100644 --- a/Trailer/Info.plist +++ b/Trailer/Info.plist @@ -38,11 +38,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.6.9 + 1.6.10 CFBundleSignature ???? CFBundleVersion - 1475 + 1476 LSApplicationCategoryType public.app-category.developer-tools LSMinimumSystemVersion