Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions TypeWhisper/App/TypeWhisperApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -692,4 +692,13 @@ final class AppDelegate: NSObject, NSApplicationDelegate, SPUUpdaterDelegate {
nonisolated func allowedChannels(for updater: SPUUpdater) -> Set<String> {
AppConstants.effectiveUpdateChannel.sparkleChannels
}

nonisolated func feedParameters(for updater: SPUUpdater, sendingSystemProfile: Bool) -> [[String : String]] {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now a real Sparkle delegate callback, but it still does not bypass the CDN in front of the actual feed. I sent three requests to https://typewhisper.github.io/typewhisper-mac/appcast.xml with different UUID values for nocache; GitHub Pages returned the same cached object for all three (x-cache: HIT with an identical x-github-request-id). The query string is therefore not part of the effective cache key for this feed, so this changes every updater URL without making the appcast fresh.

Please remove this cache-buster and solve freshness at the hosting/release layer, or move the feed to an endpoint whose cache behavior can be controlled. The fix needs an end-to-end check that can distinguish stale and newly published appcast content.

return [[
"key": "nocache",
"value": String(Int(Date().timeIntervalSince1970)),
"displayKey": "",
"displayValue": ""
]]
}
}
Loading