Import: ask again when Fourthwall answers with a stale copy #34

Merged
jcoffey-dev merged 1 commits from import/fresh-feed into main 2026-10-17 01:15:23 +00:00
Owner

Fourthwall's API sits behind a cache (Google's) that, after a quiet spell, answers with the copy it has, however old (seen at 34 minutes and at nearly two hours, against max-age=60), and fetches a fresh one behind it. The first sync after an edit in the shop could miss it.

An answer whose Age is past its max-age is now asked for again, up to three more times, two seconds apart, then taken as it is.

Two things that don't work, for the record: a Cache-Control: no-cache request header is ignored, and an extra query value is left out of the cache key.

Fourthwall's API sits behind a cache (Google's) that, after a quiet spell, answers with the copy it has, however old (seen at 34 minutes and at nearly two hours, against max-age=60), and fetches a fresh one behind it. The first sync after an edit in the shop could miss it. An answer whose `Age` is past its `max-age` is now asked for again, up to three more times, two seconds apart, then taken as it is. Two things that don't work, for the record: a `Cache-Control: no-cache` request header is ignored, and an extra query value is left out of the cache key.
jcoffey-dev force-pushed import/fresh-feed from 11a78d4470 to abc5669635 2026-10-17 00:42:07 +00:00 Compare
jcoffey-dev changed title from Import: always get a fresh copy of the Fourthwall shop to Import: ask again when Fourthwall answers with a stale copy 2026-10-17 00:42:13 +00:00
jcoffey-dev added 1 commit 2026-10-17 01:13:16 +00:00
Import: ask again when Fourthwall answers with a stale copy
ci / editor-ui (pull_request) Successful in 58s
ci / go (pull_request) Successful in 2m2s
c4589e7f6e
Fourthwall's API sits behind a cache that, after a quiet spell, answers
with whatever copy it has, however old, and fetches a fresh one behind
it. The first sync after an edit in the shop could miss it. An answer
older than its max-age is now asked for again, up to three more times,
two seconds apart.
jcoffey-dev force-pushed import/fresh-feed from abc5669635 to c4589e7f6e 2026-10-17 01:13:16 +00:00 Compare
jcoffey-dev merged commit 84373a46fb into main 2026-10-17 01:15:23 +00:00
jcoffey-dev deleted branch import/fresh-feed 2026-10-17 01:15:23 +00:00
Sign in to join this conversation.