Hello @maxn19,
The reason for the issue is the presence of a no-cache directive in sacabc.ca’s cache-control header:
cache-control: no-store, no-cache, must-revalidate
pragma: no-cache
This directive is instructing the server to disable the cache, thus the “The URL is not cached” response:
x-proxy-cache: MISS
x-proxy-cache-info: 0 NC:000000 UP:SKIP_CACHE_NO_CACHE
You can check the headers of your website with online tools such as this one.
We are unable to tell you which plugin is adding the no-cache directive. You should disable them one-by-one until you find the one causing the problem.
Best Regards,
Kuzman Stoyanov
Thread Starter
maxn19
(@maxn19)
Hi @kuzmanstoyanov ,
Thanks for your guidance. I disabled the plugins one-by-one but both cache-control & pragma and x-proxy-cache & x-proxy-cache-info did not change.
Could adding a cache-control header to .htaccess overwrite the plugin’s is issuing the instructions?
Sorry, I’m fairly new to WordPress and web management.
Cheers,
Max
@maxn19,
Trying to overwrite the headers with .htaccess may not work. The best course of action is to find the software which is adding it.
I noticed that the site uses the Enfold theme, which appears to be adding such headers, according to this thread.
You may also try to temporarily switch to some of the default WordPress themes to verify if the issue persists. If changing the theme resolves the issue, you should get more familiar with the theme settings and find which one is adding the no-cache directive.
Best Regards,
Kuzman Stoyanov
Thread Starter
maxn19
(@maxn19)
Thank you for your help @kuzmanstoyanov! Enfold was the issue. I looked through the settings but found no references to caching, but we are on an older version. I will update to the latest version and hopefully can fix the issue. In the meantime, I just added
session.use_cookies=0
session.cache_limiter=public
to php.ini as a hotfix for now as we do not have any use for cookies at the moment.
Cheers,
Max