Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter stvinmotion

    (@stvinmotion)

    P.s the Plugin’s “Remove Duplicate Images” checkbox in Settings is ticked.

    Thread Starter stvinmotion

    (@stvinmotion)

    Adding /wp-content/plugins/tp-product-image-flipper-for-woocommerce/(.*).css did the trick, of course.

    Thread Starter stvinmotion

    (@stvinmotion)

    My bad – add browser caching rule for static file was somehow off.
    Activated it and the issue is solved.

    Thank you for helping in resolving everything!

    Thread Starter stvinmotion

    (@stvinmotion)

    One other question please, In Pagespeed Insight & GTmetrix I’m getting:

    Serve static assets with an efficient cache policy 23 resources found
    A long cache lifetime can speed up repeat visits to your page. Learn More

    It shows Cache TTL – none on URLs. Is that an issue?
    GTmetrix

    Thread Starter stvinmotion

    (@stvinmotion)

    Make sure Tiered Cache is turned on in the CF Dashboard

    I activated Argo Tiered Cache under Caching > Tiered Cache.

    Also inside the CF Dashboard > Caching > Settings make sure Browser Caching TTL is set to Response Header

    in Caching > Configuration > Browser Cache TTL is set to “Respect Existing Headers”.

    – What response cookie?

    Before setting everything as your suggested I couldn’t make caching work without “Strip response cookies on pages that should be cached”, so I was about to deactivate each plugin to find which one was causing it – BUT I just set the “Strip Response Cookies” to NO, and it’s still caching, so I guess this was a byproduct of the other issues I had.

    Thread Starter stvinmotion

    (@stvinmotion)

    Caching works now ))

    I approached WP Rocket’s support:

    “we set the cache-control max-age=0 value for the nHTML file through the set of ModExpires rules we add in the htaccess file.
    See: Reference: .htaccess Rules

    Please try disabling the set of rules we add in the htaccess file for the ModExpires by installing this helper plugin:
    Remove expires (mod_expires) rules from .htaccess file

    Reference: Remove expires (mod_expires) rules from .htaccess file

    I turned this plugin into mu-plugin and caching works now.

    I activated Add browser caching rules for static assets, Auto prefetch URLs in viewport, Auto prefetch URLs on mouse hover. Would love to get any farther tips/todo from you.

    I still need to find what is causing response cookies.

    I’m considering testing if the first mu-plugin I created: wp-rocket-no-cache is still necessary and if not removing it.

    Thanks for the awesome support and suggestions!

    Thread Starter stvinmotion

    (@stvinmotion)

    Both Disabled.
    I enabled WP Rocket – verified that there’s no Advanced-cache.php file created.
    I enabled Super Page Cache and still getting the error:

    Page caching is working for static page but seems not working for dynamic pages.

    Error on dynamic page (https://www.stvinmotion.com): Invalid Cache-Control response header. If you are using Litespeed Server, please disable the option Overwrite the cache-control header for WordPress’s pages using web server rules, purge the cache and retry.

    Thread Starter stvinmotion

    (@stvinmotion)

    Did that and now when Super Page Cache is disabled and Rocket enabled there’s nothing in the advanced-cache php file.
    When I enable Super Page Cache and disable Rocket I get the caching working.
    When enabling Rocket again I get the same error.

    Thread Starter stvinmotion

    (@stvinmotion)

    OK thanks for letting me know,
    I kept insisting with Siteground and the senior tech team supposedly disabled the dynamic caching on server level.

    `I reviewed your request and as pert it disabled the dynamic caching for the stvinmotion.com site on server level. Now the site will not use the dynamic caching:

    HTTP/2 200
    date: Mon, 21 Mar 2022 14:50:14 GMT
    content-type: text/html; charset=UTF-8
    vary: Accept-Encoding
    vary: Accept-Encoding
    x-ua-compatible: IE=edge
    link: <https://www.stvinmotion.com/wp-json/&gt;; rel=”https://api.w.org/&#8221;, <https://www.stvinmotion.com/wp-json/wp/v2/pages/372&gt;; rel=”alternate”; type=”application/json”, <https://www.stvinmotion.com/&gt;; rel=shortlink
    cache-control: s-maxage=31536000, max-age=60
    cache-control: max-age=0
    x-wp-cf-super-cache: cache
    x-wp-cf-super-cache-active: 1
    x-wp-cf-super-cache-cache-control: s-maxage=31536000, max-age=60
    x-wp-cf-super-cache-cookies-bypass: swfpc-feature-not-enabled
    set-cookie: bp_user-role=guest; expires=Wed, 28-Nov-2035 14:50:14 GMT; Max-Age=432000000; path=
    content-security-policy: upgrade-insecure-requests
    expires: Mon, 21 Mar 2022 14:50:13 GMT
    x-httpd: 1
    host-header: 6b7412fb82ca5edfd0917e3957f05d89
    [b]x-proxy-cache: MISS
    [/b]x-proxy-cache-info: d NC:000000 UP:SKIP_CACHE_MAX_AGE_ZERO
    cf-cache-status: BYPASS
    set-cookie: bp_user-registered=0; expires=Wed, 28-Nov-2035 14:50:14 GMT; Max-Age=432000000; path=
    expect-ct: max-age=604800, report-uri=”https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct&#8221;
    report-to: {“endpoints”:[{“url”:”https:\/\/a.nel.cloudflare.com\/report\/v3?s=wRls55jj2e5gfmB6%2BDW%2BXp4ILgYe85xidCPVFYAJun1dKKluCFz2IuixLPRlb%2B6L%2Ffl8Gq5y09clxv40fmIf5ThxVvdBdKMKsZhPtdrx7HcdATi2k48ayMauKKNsLL7y13Tfrpax”}],”group”:”cf-nel”,”max_age”:604800}
    nel: {“success_fraction”:0,”report_to”:”cf-nel”,”max_age”:604800}
    server: cloudflare
    cf-ray: 6ef77fa9796178a9-VIE
    alt-svc: h3=”:443″; ma=86400, h3-29=”:443″; ma=86400`

    Donno it that’s sufficient or done in the right way?

    Now I got it working when WP rocket is disabled.
    When enabling WP rocket (and caching is disabled on the Third party tab)
    I get the error

    Page caching is working for static page but seems not working for dynamic pages.

    Error on dynamic page (https://www.stvinmotion.com): Invalid Cache-Control response header. If you are using Litespeed Server, please disable the option Overwrite the cache-control header for WordPress’s pages using web server rules, purge the cache and retry.

    Thread Starter stvinmotion

    (@stvinmotion)

    Thanks, I spoke to Siteground and the only way I could completely deactivate the server level page caching is through adding to the following code at the end of my .htaccess:

    <IfModule mod_headers.c>
    Header set Cache-Control “private”
    </IfModule>

    I get:
    x-proxy-cache: MISS
    x-proxy-cache-info: 0 NC:000000 UP:SKIP_CACHE_PRIVATE

    I deactivated all the plugins but cache still didn’t work without Strip response.
    I reactivated the plugins but get an error

    Page caching seems not working for both dynamic and static pages.
    
    Error on dynamic page (https://www.stvinmotion.com): Invalid Cache-Control response header. If you are using Litespeed Server, please disable the option Overwrite the cache-control header for WordPress's pages using web server rules, purge the cache and retry.
    
    Error on static resource (https://www.stvinmotion.com/wp-content/plugins/wp-cloudflare-page-cache/assets/testcache.html): Cache status: BYPASS - Cloudflare has been instructed to not cache this asset. It has been served directly from the origin.

    Tried to delete and reinstall, too.

    Thread Starter stvinmotion

    (@stvinmotion)

    Thank you @isaumya

    Success! I pointed my nameserves to CF and disabled any Siteground integration. It seems to be working now, CF-Cache-status: HIT on 2nd refresh.

    I had to use Strip response cookies

    Would really appreciate if you could verify that things are looking well, or in case you have further vital checkpoints as “point the nameservers to CF”. but for the time being, I am happy camper! ))

    Thread Starter stvinmotion

    (@stvinmotion)

    There’s still a CF tab on Siteground’s sitetools showing this https://imgur.com/z8uUXM8

    Thread Starter stvinmotion

    (@stvinmotion)

    Thank you.

    I disabled any Siteground hosting caching and the CF-railgun & SG-optimizer are not showing anymore.

    The only page rule I have on CF shows
    https://www.stvinmotion.com/*
    Cache Level: Cache Everything

    Still no luck
    Thanks

    Thread Starter stvinmotion

    (@stvinmotion)

    Thank you @salvatorefresta I deleted the plugin and waited a couple of days, then installed it again and now it works ))

    Closing this thread and will open a new one if needed.
    Thanks again for making this awesome plugin!

    Thread Starter stvinmotion

    (@stvinmotion)

    @salvatorefresta of course, just trying to figure out why has it stooped working since I deactivated then reactivated. Once I felt how beneficial this plugin is for my website it’s hard to not use it… So, what are other steps I can do to make it work again?
    Thanks

Viewing 15 replies - 1 through 15 (of 21 total)