• Resolved azzam9396

    (@azzam9396)


    Hi, I recently installed Speed Optimizer plugin since I’m hosting my website on SiteGround and I noticed that pages are not being cached.

    Even when I run the “Test URL Caching Status” from within the plugin I always get “Error: The URL is not cached” on all pages.

    I checked the headers when I was logged in it had
    SG-F-Cache: BYPASS
    When I’m logged out it didn’t have this header at all.

    I uninstalled the pluing and installed again and now this header is gone, and now I get the following headers:
    cache-control: no-cache, must-revalidate, max-age=0, no-store, private

    x-cache-enabled: True

    x-cdn-c: static

    x-proxy-cache: BYPASS

    Also the File-Based caching is not working, I enabled it and no static HTML files were created and I checked the server and nothing was found.

    Finally the weirdest thing, When I uninstalled the plugin the Goolge Page Speed went up from 91 to 95.

    I don’t know if I’m doing something wrong or is there something wrong in the plugin.

    Thanks!


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Svetoslav Vasev

    (@svetoslavvasev)

    Hello @azzam9396,

    The File-based cache depends on the Dynamic Cache to be activated and working. Since the Dynamic Cache itself is not caching the site, the File-based cache is also not creating the static HTML files.

    The value of the header “x-proxy-cache: BYPASS” and the following header – “cache-control: no-cache, must-revalidate, max-age=0, no-store, private” – indicate that the site most likely has a cookie on its pages. Pages containing cookies are not suitable for caching, since they contain sensitive data, that is unique to each visitor. As such, these pages are automatically excluded from the Dynamic Cache.

    The slight decrease in the Google PageSpeed Insights score can be attributed to the plugin adding some overhead to the site’s total loading time, without effectively caching it. Once the Dynamic Cache (and the File-based cache) are configured to work correctly, the score (which is already quite high) should at the very least be preserved or improved.

    For the specific issues you’re experiencing, we recommend submitting a support request through your SiteGround account. Our Technical Support team will be able to review your case and provide further information and assistance.

    Best Regards,
    Svetoslav Vasev

    Thread Starter azzam9396

    (@azzam9396)

    Hi @svetoslavvasev

    Thanks for the quick response.

    So cache will not work on any site which has Google Analytics or any service that uses cookies?

    Plugin Support Svetoslav Vasev

    (@svetoslavvasev)

    The various plugins that allow you to link a WordPress site to Google Analytics don’t generally use cookies, but rather rely on Google Tags to track the analytical data for the site. Nonetheless, it’s possible that some of these plugins offer other features that do utilize cookies.

    However, you’re correct in your assessment that the Dynamic Cache won’t work on sites/pages that use cookies. Caching such pages might lead to security and functionality issues, which is why the Dynamic Cache doesn’t cache such pages by default.

    Best Regards,
    Svetoslav Vasev

    Thread Starter azzam9396

    (@azzam9396)

    Ok Great,

    Thank you for the clarification!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.