wieni / wmcontroller

Adds support for bundle-specific controllers for Drupal 8 entities.
MIT License
3 stars 4 forks source link

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

Closed RobinHoutevelts closed 11 months ago

RobinHoutevelts commented 11 months ago

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.