Progress bar: update right after a donation (LiteSpeed no-cache, more refreshes, visible fill for small amounts)
Test and Release / test (push) Successful in 1m19s
Test and Release / release (push) Successful in 8s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0185ukXhhC8xipsBR7e3o76i
This commit is contained in:
shadowdaoandClaude Sonnet 5.5 committed 2026-11-16 08:34:59 -08:00
1 parent 55d1c34b1f
commit c6520b761a
3 files changed
+5 -3

No files matched your search

+1
View File
@@ -85,6 +85,7 @@ final class DonateController {
$res = rest_ensure_response( self::progress_for( $goal ) );
// Short shared cache lets a CDN collapse bursts; the page JS adds a cache-busting parameter after a donation.
$res->header( 'Cache-Control', 'public, max-age=10, s-maxage=10' );
$res->header( 'X-LiteSpeed-Cache-Control', 'no-cache' ); // LiteSpeed would otherwise hold REST responses for days
return $res;
}