-
Notifications
You must be signed in to change notification settings - Fork 11
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
Better handling of non OK HTTP status codes in injector #3
Comments
I added first workaround to only store HTTP/OK responses for now: |
inetic
added a commit
that referenced
this issue
Jun 1, 2020
I could have happened as such: 1. Cache adds foo.bar to the announcer 2. User hits the "purge cache" button and foo.bar is marked for removal after some delay 3. Cache adds foo.bar to the announcer again, but nothing happens because foo.bar is already there (although marked for removal) 4. Time passes and announcer removes foo.bar Solution: * Unmark foo.bar's removal flag in step #3 above
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At the moment, when the injector receives a message from the origin, it only checks the error code. But this error code has nothing to do with the response HTTP status code.
We need to check that, and handle non OK responses appropriately.
Sample 304 response I found in the cache:
The text was updated successfully, but these errors were encountered: