• Resolved hungpham

    (@hungpham)


    I am running Nginx as reverse proxy on Apache. Is this plugin compatible with that setup? I ask because after activating the plugin, test command “curl -I https://mydomain” shows

    wpo-cache-status: cached
    last-modified: Wed, 24 May 2023 20:11:19 GMT
    vary: Accept-Encoding,User-Agent
    expires: Wed, 24 May 2023 20:39:14 GMT
    x-cache-status: MISS

    Before, the x-cache-status was HIT.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support vupdraft

    (@vupdraft)

    It should be compatible.

    X-cache:HIT means that your request was served by CDN, not origin servers.

    Thread Starter hungpham

    (@hungpham)

    No, I don’t use CDN. X-cache is the status from Nginx reverse proxy. So, the plugin hasn’t tested with Nginx reverse proxy yet?

    Plugin Contributor Venkat Raj

    (@webulous)

    @hungpham WP-Optimize sends Cache-Control: no-cache header when serving cached pages. According to NGINX docs, it won’t cache responses that has values private , no-cache or no-store for cache-control header.

    I think it is the reason you get MISS You could ignore the header using proxy_ignore_headers directive.

    Thread Starter hungpham

    (@hungpham)

    It’s not that case. Just checked again with curl:

    HTTP/2 200
    server: nginx
    date: Fri, 26 May 2023 10:24:04 GMT
    content-type: text/html; charset=UTF-8
    vary: Accept-Encoding
    x-powered-by: PHP/8.2.5
    cache-control: max-age=300
    wpo-cache-status: cached
    last-modified: Thu, 25 May 2023 17:13:08 GMT
    vary: Accept-Encoding,User-Agent
    expires: Fri, 26 May 2023 10:29:04 GMT
    x-cache-status: MISS

    Plugin Contributor Venkat Raj

    (@webulous)

    When visiting a page with wpo-cache-status: cached header, do you see an HTML comment similar to the screenshot when viewing source code?
    https://prnt.sc/sKOGycDci-3Q

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Is it compatible with Nginx Plus (proxy)?’ is closed to new replies.