• Resolved marios88

    (@partakaw)


    There should be an option ( default on IMO ) to not cache 5xx responses, ie generated from maintenance mode

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @partakaw,
    I just checked this and could not replicate this issue. Here’s what I’ve done:

    In the root of the website (where wp-config.php file is present) I’ve added a file named .maintenance and inside that file added this code:

      <?php
          $upgrading = time();
      ?>

      This helps the website to show the WordPress Maintenance mode. But in this mode, I do not see any Cache-Control in the response header and also the Cloudflare cache status is DYNAMIC which means the page is not being cached. Screenshot: https://i.imgur.com/jITDdyy.jpeg

      So, I would suggest you to share your maintenance page URL so that I can look into it.

      Thread Starter marios88

      (@partakaw)

      Hello and thank you for the quick reply, i am using
      https://www.ads-software.com/plugins/wp-maintenance/

      Its a network site install, so i dont use the .maintenance method

      Plugin Contributor iSaumya

      (@isaumya)

      Hi @partakaw,
      I cannot comment on other third-party plugins. They need to add Cache-Control: no-store, no-cache, must-revalidate, max-age=0 for the requests. I’ve tested the WP Native maintenance mode and did not find any issues there.

      OR

      You can disable the page cache from the plugin settings when you enable maintenance mode. There is no point of keeping page caching active when you have enabled maintenance mode anyways.

      Thread Starter marios88

      (@partakaw)

      Thanks!

    Viewing 4 replies - 1 through 4 (of 4 total)
    • The topic ‘Dont cache 5xx Responses’ is closed to new replies.