Help please !! Conflict between SiteGround Optimizer and Comet Cache
-
Hello,
I′m experiencing cache conflicts in all pages of my WP instal: https://www.aflorarte.com/bibliolab/ between SiteGround Optimizer Cache and Comet Cache starting with s2member plugin. None of the pages belonging to this website seem to be cached.
According to SiteGround support
“The s2member plugin seems to not set CACHE headers for the website, as you can verify from this header
Iliya-Pirgov:~ iliya.pirgov$ curl -IX GET https://www.aflorarte.com/bibliolab/ HTTP/2 200 date: Wed, 15 Dec 2021 16:51:24 GMT content-type: text/html; charset=UTF-8 vary: Accept-Encoding content-security-policy: upgrade-insecure-requests expires: Wed, 11 Jan 1984 05:00:00 GMT cache-control: no-cache, must-revalidate, max-age=0 x-cache-enabled: True link: <https://www.aflorarte.com/bibliolab/wp-json/>; rel=”https://api.w.org/” link: <https://www.aflorarte.com/bibliolab/wp-json/wp/v2/pages/3148>; rel=”alternate”; type=”application/json” link: <https://www.aflorarte.com/bibliolab/>; rel=shortlink x-httpd-modphp: 1 host-header: 6b7412fb82ca5edfd0917e3957f05d89 x-proxy-cache: MISS x-proxy-cache-info: 0 NC:000000 UP:SKIP_CACHE_NO_CACHE cf-cache-status: DYNAMIC expect-ct: max-age=604800, report-uri=”https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct” report-to: {“endpoints”:[{“url”:”https:\/\/a.nel.cloudflare.com\/report\/v3?s=29cOul2llveNJ1bvZ5oHfBv6e7%2FpWVbrdmo%2BEAn7VZyv2HfrQn5Js6od9sVAEqv69xYwL%2BBRJOprcA7Ne7OG1b%2FzUg%2BTrTCCIyZ%2BODhtYVHxQ%2BwrNa08rwD1zcwPNsrY9enAog%3D%3D”}],”group”:”cf-nel”,”max_age”:604800} nel: {“success_fraction”:0,”report_to”:”cf-nel”,”max_age”:604800} server: cloudflare cf-ray: 6be12d28cdd44e9d-FRA alt-svc: h3=”:443″; ma=86400, h3-29=”:443″; ma=86400, h3-28=”:443″; ma=86400, h3-27=”:443″; ma=86400
This is the header, when the plugin is disabled:
Iliya-Pirgov:~ iliya.pirgov$ curl -IX GET https://www.aflorarte.com/bibliolab/
HTTP/2 200
date: Wed, 15 Dec 2021 16:51:34 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests
x-cache-enabled: True
link: <https://www.aflorarte.com/bibliolab/wp-json/>; rel=”https://api.w.org/”
link: <https://www.aflorarte.com/bibliolab/wp-json/wp/v2/pages/3148>; rel=”alternate”; type=”application/json”
link: <https://www.aflorarte.com/bibliolab/>; rel=shortlink
x-httpd-modphp: 1
host-header: 8441280b0c35cbc1147f8ba998a563a7
x-proxy-cache: HIT
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri=”https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct”
report-to: {“endpoints”:[{“url”:”https:\/\/a.nel.cloudflare.com\/report\/v3?s=OLyu0zYxw1uTE2CpenvIjB2WjDg6yBnKM0MRN%2B14CcpwhAu%2FuQzZ5B05PHFqN7p8gzmnasjy6Nl%2F451brwgqfSfiN2TPLhKxBbwW53hHoIUVc9YsPtLC3hqZKAcdgMmP4qZbBQ%3D%3D”}],”group”:”cf-nel”,”max_age”:604800}
nel: {“success_fraction”:0,”report_to”:”cf-nel”,”max_age”:604800}
server: cloudflare
cf-ray: 6be12d6dce204e07-FRA
alt-svc: h3=”:443″; ma=86400, h3-29=”:443″; ma=86400, h3-28=”:443″; ma=86400, h3-27=”:443″; ma=86400
I’ve also noticed that the s2member plugin doesn’t work well with object caching,My recommendation is to configure the s2member plugin to allow caching or disable that plugin. Of course, you should contact developer to discuss this first.
It seems that the s2member is controlling the caching of the pages and there are only limited plugins that can avoid it. One of them is Comet Cache and the other is W3 Total Cache, so to have the pages correctly cached, you must use one of the two plugins.”
After this feedback I installed and activated Comet Cache and it seems to be working fine as you can see at the bottom of view-source:https://www.aflorarte.com/bibliolab/
However SG Caching test retrieves error:ERROR: Cookie verification failed
https://www.aflorarte.com/bibliolab/ is only an example. I am experiencing this problem in every site of the website
Please let me know how to fix this issue
The page I need help with: https://www.aflorarte.com/bibliolab/
Going further in this issue, SG Support extended response saying:
“`There is currently a no-cache header on the site that prevents dynamic caching from working and possibly any other cache plugins as well:
cache-control: no-cache, must-revalidate, max-age = 0
pragma: no-cacheNote that these headers will also affect Cloudflare’s full page caching, so they should be removed from the site. These headers appear to be used by the comet-cache plugin in the plugins / comet-cache / src / includes / traits / Shared / HttpUtils.php file:
public function sendNoCacheHeaders ()
{
header_remove (‘Last-Modified’);
header (‘Expires: Wed, 11 Jan 1984 05:00:00 GMT’);
header (‘Cache-Control: no-cache, must-revalidate, max-age = 0’);
header (‘Pragma: no-cache’);
}
}With them in place we cannot advise if the full page cache will work`”
Hope this added information is useful
Because I Still don′t fully understand if this problem arises from s2member plugin, I have also posted this query in that forum:
https://www.ads-software.com/support/topic/siteground-sg-optimizer-cache-in-conflict-with-s2member/Thank you very much and regards
Liliana
The page I need help with: [log in to see the link]
- The topic ‘Help please !! Conflict between SiteGround Optimizer and Comet Cache’ is closed to new replies.