Skip to main content

Remediation Steps

Follow the steps below to remediate this finding on WordPress.

  1. Disable the Last-Modified and ETag headers if not needed for caching:

  2. In functions.php:

    remove_action('wp_head', 'wp_generator');
    add_filter('wp_headers', function($headers) {
    unset($headers['Last-Modified']);
    unset($headers['ETag']);
    return $headers;
    });
  3. Review theme and plugin output for raw timestamps in page source.