-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 Caching returns HTTP 200 status code for 404 pages #197
Comments
Ah.. I see. Darn, this actually comes back to the issue with PHP itself, where From this line in the dev branch.
What we could do is stuff the 404 header into the cache file like we already do for the other headers preserved by this line inside the |
@jaswsinc Yes, if you could fix this along with #56, that would be great! I've assigned this to you. Thanks! |
Closed by #219. |
When the 404 Caching option is enabled, Quick Cache caches the 404 page and serves the cached file upon all subsequent 404 errors. However, it also returns a
200 OK
HTTP status code, instead of the proper404 Not Found
.Here's how you can reproduce this:
wget --server-response <non-existent page URL>
and observe the outputwget --server-response <non-existent page URL>
and observe the outputNote that with Quick Cache 404 Caching disabled, WordPress returns the correct HTTP status code.
See http://wordpress.org/support/topic/cached-404-returns-200
The text was updated successfully, but these errors were encountered: