• Resolved r4yanw1ang

    (@r4yanw1ang)


    Hi everyone,

    I’m having trouble getting LiteSpeed Cache to actually cache my WordPress site. Despite enabling all the correct settings, my homepage and other pages consistently return:

    cache-control: no-cache, no-store, must-revalidate
    x-litespeed-cache-control: no-cache

    What I’ve Done So Far:

    • My server is LiteSpeed, confirmed via HTTP response headers.
    • Installed and activated LiteSpeed Cache plugin.
    • Enabled all cache options under LiteSpeed Cache → Cache.
    • TTL settings are set to default (1 week).
    • Homepage is not excluded in any exclusion fields.
    • I verified .htaccess includes the LSCache rules.
    • Tested the site using httpstatus.io and RedBot.org in Incognito mode.
    • Tried purging cache via LiteSpeed Toolbox.
    • Deactivated all plugins except LiteSpeed Cache.
    • Checked for DONOTCACHEPAGE in functions.php and plugin files — nothing found.
    • Tried using Force Public Cache URIs (/ 3600).
    • Maintenance mode is off.
    • Theme is TravelTour by GoodLayers.
    • Added this custom code to functions.php to override headers:

    add_action( 'send_headers', function() {
    header_remove('Cache-Control');
    header_remove('Pragma');
    header_remove('Expires');
    header('Cache-Control: public, max-age=3600');
    }, 100 );

    Question: Still seeing no-cache, and no x-litespeed-cache: hit.

    I feel like I’ve exhausted everything. Is there anything I’m missing?

    Thanks in advance for any guidance

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘no-cache Header Despite Plugin Enabled’ is closed to new replies.