get_route(); if ($route === '/epiq/v1/auth') { // Strongest practical "do not cache" header set header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0, s-maxage=0, private', true); header('Pragma: no-cache', true); header('Expires: 0', true); // Critical: vary by Cookie so any intermediary knows this differs per user header('Vary: Cookie', false); // Optional: debugging visibility (remove later) header('X-EPIQ-AUTH: 1', true); header('X-EPIQ-AUTH-UID: ' . (int) get_current_user_id(), true); } } catch (Exception $e) { // no-op } return $result; }, 10, 3); /** * 2) (Optional but recommended) Ensure WP Rocket never caches this endpoint * WP Rocket uses DONOTCACHEPAGE for page cache; REST is usually not page-cached, * but some setups / reverse proxies can still cache it. */ add_action('init', function () { // Nothing needed here unless you have aggressive proxy caching. });

Activity

Show
by
Review Your Cart
0
Add Coupon Code
Subtotal