-
Notifications
You must be signed in to change notification settings - Fork 1
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
need fix Advanced Configuration cache error #1
Comments
You're right. It is just a config snippet, not a complete usable Caddyfile. I will change that, so that at least the 2 examples at the top are complete.
You are right, there is a panic:
That seems to be an error in the https://github.com/caddyserver/cache-handler or https://github.com/darkweak/souin code. You should report an issue there. Maybe @darkweak can help, if there is something wrong in the example config? |
That's because you're not writing any headers in the response and you're not calling the WriteHeader responsewriter. I think I could patch on my side @ueffel and check if the response contains headers here https://github.com/darkweak/souin/blob/v1.6.27/plugins/base.go#L79. |
@darkweak It feels a lot like darkweak/souin#254 It's still the same issue. Calling the Response.Write without explicit WriteHeader first. |
I see. Thank you for your answer |
Fixed in |
I downloaded caddy and image-filter on January 23, 2022 when I used Examples
The code does not respond correctly
Change to the bottom so that you can respond to the request correctly
Download caddy, image-filter and cache in the introduction again
Error in code in Advanced Configuration after enabling cache
The text was updated successfully, but these errors were encountered: