WordPress.org

Forums

Quick Cache (Speed Without Compromise)
Cached 404 returns 200 (3 posts)

  1. webmaster808
    Member
    Posted 1 year ago #

    My SEO guy tells me that the first time a non-existent URL is requested a 404 code is correctly returned, however on the second request of that URL a cached version of the 404 page is served along with a 200 code. We need it to return a 404 when a cached response to a non-existent URL occurs and not a 200. Is this a function of the Quick Cache plugin or is this a WordPress/Apache issue?

    Thanks!

    Tom

    https://wordpress.org/plugins/quick-cache/

  2. Raam Dev
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Tom,

    Thank you very much for reporting this important issue. I discovered this issue myself a few days ago and there is a fix in place that will be released with the next version of Quick Cache (coming within the next week or two at the latest).

  3. Raam Dev
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Tom,

    The latest version of Quick Cache, v140605.1, includes a new feature called 404 Caching, which is disabled by default. With this option disabled, your 404 pages will not be cached.

    New Feature: 404 Page caching. It's now possible to enable/disable the caching of 404 requests. Enabling this feature generates a single cache file for your 404 Page and then symlinks future 404 requests to that cache file. See Dashboard -> Quick Cache -> Plugin Options -> 404 Requests.

    That said, upon reviewing this support thread after publishing the new version, I realized that the bug you mentioned may still exist when 404 Caching is enabled. Sure enough, it does. I opened a new bug report here related to this new feature and will get this bug fixed for the next release which will happen within the next few weeks. Until then, you may want to leave the 404 Caching option disabled.

    I'm going to leave this support thread open for now and close it after the bug is fixed.

    Again, for now, you can simply update to v140605.1 and leave the 404 Caching option disabled. With that option disabled, WordPress will return the proper 404 status code.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Quick Cache (Speed Without Compromise)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic