Feature Request/Cache 404 Errors (3 posts)

  1. John Keegan
    Posted 8 years ago #

    We just had a situation where a site was sent a large amount of traffic to an invalid URL.

    Unfortunately the system did not fare so well, since unlike legitimate traffic which can be wp-cached and wp-super-cached, 404s must go through the entire app layer and get generated dynamically. So it would be nice to have an option to cache (especially supercache) 404 errors for a specific period, assuming of course the proper 404 header could be sent (might be more problematic).

  2. Donncha O Caoimh
    Posted 8 years ago #

    There's an "is_404()" check in wp-cache-phase2.php. If you remove that then the plugin should cache those pages.

  3. John Keegan
    Posted 8 years ago #

    Yes, I tried that actually but it appears that when you do that the 404 page gets cached but the actual response header that gets sent out when the cached page is retrieved is 200...

    So it would be an acceptable temporary measure but not something I'd want to do permanently (i.e. send all my 404s with 200 response headers). It would be nice if that functionality was built in so that the 404s were actually returned with 404 response headers.

Topic Closed

This topic has been closed to new replies.

About this Topic