• davedecc

    (@davedecc)


    We are aiming to exclude certain pages from nginx caching, specifically pages with forms on them.

    I have tried the method of adding do-not-cache: true as a PHP header to these pages, however the plugin/nginx does not appear to be recognizing this. The source code contains the following in the footer:

    <!--Cached using Nginx-Helper on 2025-01-07 14:09:56. It took 68 queries executed in 0.690 seconds.--> 
    <!--Visit http://wordpress.org/extend/plugins/nginx-helper/faq/ for more details-->

    Would appreciate any thoughts or insights on how we can make this work. I am not sure if or how the plugin would handle excluding certain pages/urls/etc. Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter davedecc

    (@davedecc)

    I enabled x-cache-header and performed further testing.

    While I still get the nginx-helper html comment code, it seems it is not actually cached by repeatedly getting

    x-cache: MISS

    After several reloads.

    This may indicate the issue is more with the plugin than the cache respecting headers. I welcome any thoughts. Thanks.

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