• Leap
  • disallowed vary header values are present (SiteSpeed)

Hi,
I need help and instruction to fix these two errors:

  • "disallowed vary header values are present"

  • "subsequent calls will be cache hits"

I've already enabled cache for cookies and set to on the Override headers but nothing changed.

Thanks

    Vary headers can be removed from the origin right from the Caching app settings - you can use a redirect path chrome extension like Ayima to identify those headers, and then add them to the caching app to be removed.
    Just make sure they're not critical to the site performance.

    Seeing 'subsequent calls will be cache 'hits'' is a good thing, it means that initial test showed a non-cached page but all visits after that would be cached, there's nothing to fix with that really 🙂

      I've checked and the only Vary header reported by the browser are Accept-Encoding and User-Agent.
      So there's nothing I can set.

      About the other problem, I don't even know where to start.

      Another useful info (maybe)...the vary header problem started after migrating from DigitalOcean (OpenLiteSpeed, Ubuntu 18) to InterServer (OpenLiteSpeed, Ubuntu 22).

      The "subsequent calls will be cache hits" is more recent (appeared few days ago).

      Leap "Remove Scripts or Styles" doesn't work and I hope that fixing those problem it will start caching css, js and script again.

      Please help.

        Ayma report:

        dateFri, 22 Sep 2023 23:23:13 GMT
        content-typetext/html; charset=UTF-8
        alt-svch3=":443"; ma=86400
        cache-controlprivate, max-age=0, must-revalidate, no-cache, no-store
        displaypub_site_sol
        expiresThu, 21 Sep 2023 23:23:12 GMT
        linkhttps://xxxxxxxxxxxx/wp-json/; rel="https://api.w.org/", https://xxxxxxxxxxxx/wp-json/wp/v2/pages/xxxxxxxxxxxxx; rel="alternate"; type="application/json", https://xxxxxxxxxxxxxx/; rel=shortlink
        pagespeedoff
        response200
        varyAccept-Encoding,User-Agent
        x-ez-minify-html13.99% 254951 / 296411
        x-ezoic-cdnMiss
        x-middleton-displaypub_site_sol
        x-middleton-response200
        x-origin-cache-control
        x-solpub_site
        cf-cache-statusDYNAMIC
        report-to{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=Uf%2BEFr4Lh4qyQOOASXoHrKF1Z%2FVSVQW7MSgHfnOiF2tGDDbmyrogYUhVt8gzqUiycCu2llUcD8e%2Fy%2BLcvMLzjIiOxXj9%2BkvPPdO1vbAGbL2mCRbAFLeKg4knmkHSQKcv"}],"group":"cf-nel","max_age":604800}
        nel{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
        servercloudflare

          I think there was a misunderstanding --- seeing "subsequent calls will be cache hits" is not indicative of an issue. It just means that the first request to that particular page you tested wasn't cached, and the next visit would be,

          I'm not really sure we should be doing any troubleshooting, neither of the two messages you shared would negatively affect caching hit rates.

            Hi Tucker,
            I'm getting 24% cache hit rate and 76% cache miss rate since August 2, day of the migration on a new server.

            I'm struggling believing that there's no problem even because Leap is not working at all looking at the report from Ayma, PageSpeed Insight, Chrome dev tool, and the Ezoic browser extension.

            My speed score is awful and I didn't even know if my last setting in the optimization panel will break my site because Leap is not working.

            Maybe those message are not the problem but still...Leap report a Vary header issue but there's no extra vary value added anywhere...

            It would appreciated if someone could take a look and fix the problem. I don't have the knowledge to figure out what's going on.

            Thanks

              Lucio1976 Your Cache Hit Rate is struggling because your cache has been manually cleared 158 times since August 2nd. Every time that you clear the cache, your going to see a drop in Cache Hit Rate. You should only clear your site's cache when absolutely necessary and you should try to limit it to as few URLs as possible - the only time that you should clear the cache for your whole domain is if you've made a very large change.

              I've checked the site and I am hitting the cache (seeing HIT in the HTTP headers), so I don't think there's a technical issue here. I would recommend leaving the cache as is and allowing it to build, if a high Cache Hit Rate is a priority.

                Ok but Leap doesn't remove unused CSS and Ezoic browser extension says that pages are not cached.

                I've migrated my website on a new server on August 2nd. I've cleared the cache so many times because there were many issues to be addressed.

                Could you check please? There're 16 files in the "Inclusion Rules" under "Remove Scripts or Styles". No one of them seem to be removed.
                And why the Ezoic browser extension report "No cache on this page"? Should I ignore it?
                Please, let me know as soon as possible.

                Thank you

                  Lucio1976 What are these files that you added? I see that some have to do with the theme. Are they part of the core theme structure?

                  As for the cache hits and misses, we are seeing hits. Ayima, a Chrome extension gives you the ability to view page information more accurately. For this reason, you can ignore that you're seeing "no cache on this page"

                    Unused CSS from parent theme and plugin.
                    Even ignoring your browser extension, there're all other tools that reports issue with cache, so please, take a look.

                    Thank you

                      You are posting too frequently - please wait before posting again