Progress bar: update right after a donation (LiteSpeed no-cache, more refreshes, visible fill for small amounts)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXhhC8xipsBR7e3o76i
This commit is contained in:
1 parent
55d1c34b1f
commit
c6520b761a
3 files changed
+5
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user