• Resolved stvinmotion

    (@stvinmotion)


    Hi and thanks for the awesome plugin!

    I had it working but after disabling it to find a culprit (“disable Page cache”) and re-enabling it again I can’t seem to make it work.
    I’m using WP-Rocket but caching is disabled there and on the “Third party” tab.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 7 replies - 16 through 22 (of 22 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    “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

    – Yes forgot to tell you about that. I thought they were setting it at the PHP level. Removing the WP Rocket htaccess rules was important. I thought they auto removed it on disabling cache.

    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.

    – All good. Make sure Tiered Cache is turned on in the CF Dashboard and do not use any other page rule or worker to modify the cache behavior in any way. Let the plugin handle your cache. Also inside the CF Dashboard > Caching > Settings make sure Browser Caching TTL is set to Response Header and do not add any page rule to tinker with cache behaviour.

    I still need to find what is causing response cookies.

    – What response cookie? I have not seen any response cookies in your page. Can you share a page URL where the cookie is present? As looking at the cookie name might help what is adding that cookie.

    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.

    Plugin Contributor iSaumya

    (@isaumya)

    Glad to know everything is working well. I am resolving this thread. If you can share a review in the review section it would be great.

    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

    Plugin Contributor iSaumya

    (@isaumya)

    From what I am seeing your static files do not have the proper cache-control header: https://i.imgur.com/b1E3Wy2.jpeg

    Inside the plugin settings if you have enabled the option to add browser caching rule fro static file option then it should add some htaccess rule in your htaccess file. Check if they are there. If you see them there and yet the cache control is not showing up properly contact your host asking why the htaccess rules are not working.

    If you don’t see the rule, try disabling and enabling the add browser cache rule for static file option. Also enable the development mode in your CF dashboard so that no file gets cached and you can check if the proper cache control header values are being shown for static files or not. If they are then disable the development mode and purge the full cache.

    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!

    Plugin Contributor iSaumya

    (@isaumya)

    Looking forward to your review.

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Cache status: DYNAMIC’ is closed to new replies.