• I am using a NGINX reverse proxy on a remote machine. Installed and configured caching. Using your health check, it is reporting “Your domain does not report an “Age” header, making it impossible to determine if the page is actually serving from cache.”

    Despite numerous google searches, I can not get NGIX to return any age details in the header. I.e Curl -I URL

    What is the exact header name or title that your plugin is looking for. The only age header that I can return is

    add_header X-Cache-date $upstream_http_date;

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    This is true, Nginx does not have that out of the box. But that does mean that the check will never work because it cannot tell if the file has, in fact, been cached. Basically your server isn’t telling it if it was cached.

    You can, however, MAKE an age header.

    https://stackoverflow.com/questions/38071617/how-to-display-the-age-of-an-nginx-cached-file-in-headers

    Edit: Actually that error means your Nginx box isn’t returning a proper X-Varnish header either. The checker was built to look for that and, if it’s valid, return true on all age checks. Make sure 'X-Varnish' is returning HIT

    Thread Starter bandsaw12

    (@bandsaw12)

    Thank you. The X-Varnish is the piece of information that is missing in your documentation. If I may suggest, add to your product description exactly what header names your product is looking for. As I read the description, I am assuming the plug in works for both NGINX and Varnish. I don’t read it as NGINX with Varnish.

    Just curious, do you really need the age header at all? If you get a cache status of HIT, then the page is cached? Yes?

    I will try changing my cache status header to X-Varnish and see if I get this working.

    Also, again, if I may so, if negative results of the cache checks does not always impede the operation of your plug in, the failed check should say so. As it is, the Age check shows red and I take it as meaning a show stopper.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Age Header Missing’ is closed to new replies.