Skip to content

Conversation

@Jade-GG
Copy link
Contributor

@Jade-GG Jade-GG commented Nov 7, 2025

It's possible to generate 500 errors by sending POST requests to /!/nocache with no parameters, because the $url will be null which the ->setUrl function doesn't like. This PR adds a default here which mitigates the error. Alternatively, we could handle it with a validation error.

I've also added a simple test to test this behavior.

@jasonvarga jasonvarga changed the title [5.x] Add default to nocache url parameter [5.x] Require url in nocache request Nov 10, 2025
@jasonvarga jasonvarga merged commit c1f3f33 into statamic:5.x Nov 11, 2025
25 checks passed
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.

2 participants