Does cloudflare cache HTTP Status Codes

What is the name of the domain?

shortlinksfaucet.xyz

What is the error number?

HTTP Status 200 instead of 302 (PHP Server)

What is the issue you’re encountering

HTTP Status 200 instead of 302 (PHP Server)

What steps have you taken to resolve the issue?

Resolved on its own after sometime for a particular URL with query parameters.

What are the steps to reproduce the issue?

Whenever a shortlink button is pressed in the website https://shortlinksfaucet.xyz/ , it redirects to a new URL with status code 302.

Two days ago, there was an issue for one particular shortlink button where the HTTP response code was 200 instead of 302 due to which redirection did not happen.

This issue was resolved automatically after sometime.

Does clouldflare cache HTTP response codes or modify when the response is late from the origin server.
Does cloudflare cache based on the query parameters.

Thank you

If a resource returns a 200, Cloudflare will return a cached 200 for future requests until cache expires. 120 minutes by default.

If a resource returns a 302, Cloudflare will return a cached 302 for future requests until cache expires. 20 minutes by default.

2 Likes

Thank you for the response and confirmation regarding the caching.
I am trying to replicate 200 response from the server based on the existing code. I would like to know if the server does not complete the request within 1 or 2 minutes, will cloudflare send 200 HTTP response.
I have enabled Always Online™ settings in the configuration.

1 Like

I have disabled the cache by implementing a custom rule.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.