no-cache Header Despite Plugin Enabled
-
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-cacheWhat 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
.htaccessincludes 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
DONOTCACHEPAGEin 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.phpto 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 nox-litespeed-cache: hit.I feel like I’ve exhausted everything. Is there anything I’m missing?
Thanks in advance for any guidance
The topic ‘no-cache Header Despite Plugin Enabled’ is closed to new replies.