Closed dillonbailey closed 1 year ago
- Invalidation error logged to console in blitz.log
Can you please share the error message?
It looks like AWS is complaining that your URL is an invalid path. Can you share the URL you are refreshing, with the domain redacted if necessary?
Yeah this is the gist: https://example.ddev.site/actions/blitz/cache/refresh-urls?key=SuperSecret&urls=https%3A//example.ddev.site/api/*
I've tested all variations of url encoding the *
at the end but that seems to be the issue. If you entered this directly in the AWS console it would work correctly, I've not tried direct via SDK to validate.
Can you apply the code change from https://github.com/putyourlightson/craft-blitz-cloudfront/commit/4d4572cc2feba08ef77227d56ae9aa9ef6bb1523, which will log the paths that cause the error, so we can troubleshoot what AWS is complaining about?
Any update on this @dillonbailey?
Closing due to inactivity.
example failing URL: https://example.ddev.site/actions/blitz/cache/refresh-urls?key=SuperSecret&urls=https%3A//example.ddev.site/api/*
A clear and concise description of what you expected to happen. Wildcard invalidation
If applicable, add screenshots to help explain your problem.
The plugin and Craft version numbers. Blitz - 3.12.9 Craft - 3.8.7