Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[6.x] Fix last_modified option in SetCacheHeader #30335
Fix problem with last_modified option
The SetCacheHeaders Middleware accept a parameter last_modified, the problem is that the middleware passes only strings as parameters and the setCache needs a DateTime compatible object.
This fix parses the string passed in the last_modified option in two ways:
Two new tests created
Hey @aponscat. Almost there. Just a few styling issues left: https://github.styleci.io/analyses/zEgQeD?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link