SiteGround SG Optimizer Cache in conflict with s2Member
-
Hello,
I′m experiencing cache conflicts in all pages of my website.
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
Thank you very much
Liliana
The page I need help with: [log in to see the link]
- The topic ‘SiteGround SG Optimizer Cache in conflict with s2Member’ is closed to new replies.