Compare commits

...

2 commits

Author SHA1 Message Date
King Omar
bf18f882da Remove 'ban face coverings' from Switzerland examples 2026-06-27 03:41:40 +10:00
King Omar
e1b3c7600e Fix comments not loading: disable 24hr Cloudflare cache on comments endpoint
getComments was using createResponse default cacheDuration=86400 (24 hours).
Cloudflare was serving a stale cached response, so comments appeared empty
or outdated on every load. Set cacheDuration=0 (no-store) so each request
hits the DB fresh.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-27 03:38:12 +10:00
2 changed files with 2 additions and 2 deletions

View file

@ -366,7 +366,7 @@
<div class="about-swiss-flag">🇨🇭</div>
<div>
<p class="about-swiss-heading">This already works. Switzerland proved it.</p>
<p>Switzerland has had this system since <strong>1891</strong>. 100,000 signatures forces a binding national vote. Swiss citizens have used it to set their own immigration rules, reject government spending, ban face coverings, and keep nuclear power — directly overruling their parliament every time.</p>
<p>Switzerland has had this system since <strong>1891</strong>. 100,000 signatures forces a binding national vote. Swiss citizens have used it to set their own immigration rules, reject government spending, and keep nuclear power — directly overruling their parliament every time.</p>
<p>It's not radical. It's just democracy that actually works.</p>
</div>
</div>

View file

@ -1718,7 +1718,7 @@ async function getComments(request, env) {
});
}
return createResponse(comments.results);
return createResponse(comments.results, 200, 0);
} catch (dbError) {
return createResponse({
error: 'Failed to retrieve comments',