| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/mastersystem.app/public/wp-content/plugins/mailpoet/lib/Util/ |
Upload File : |
<?php declare(strict_types = 1);
namespace MailPoet\Util;
if (!defined('ABSPATH')) exit;
use MailPoet\WP\Functions as WPFunctions;
class Headers {
public static function setNoCacheHeaders(): void {
$wp = WPFunctions::get();
if ($wp->headersSent()) {
return;
}
// Set default no-cache headers:
header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1+
header('Pragma: no-cache'); // HTTP 1.0
header('Expires: 0'); // proxies
header('X-Cache-Enabled: False'); // SG Optimizer on SiteGround
header('X-LiteSpeed-Cache-Control: no-cache'); // LiteSpeed server
// Use WP-native nocache_headers(). This can override the defaults above.
$wp->nocacheHeaders();
}
}