Skip to content
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

Mark 300, 301, 302 and 410 as cacheable response status codes #63

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

RobinHoutevelts
Copy link
Contributor

The current implementation doesn't cache all kinds of responses.
This PR makes sure the following statuscodes are now considered cacheable as well, in addition to the already considered cacheable codes 200, 203 and 404:

Code Description
300 Multiple Choices
301 Moved Permanently
302 Found
410 Gone

This list has been taken from Symfony.

After this PR is merged, you can cache redirect responses.

@RobinHoutevelts RobinHoutevelts merged commit 260452d into release/v1 Oct 30, 2023
@RobinHoutevelts RobinHoutevelts deleted the more-cacheable-http-statuscodes branch October 30, 2023 14:21
@RobinHoutevelts RobinHoutevelts changed the title Change namespace of moved class Mark 300, 301, 302 and 410 as cacheable response status codes Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant