Revert "Fix captcha cache control bug" (#2335)

This commit is contained in:
Dessalines 2024-01-19 13:00:15 -05:00 committed by GitHub
parent d6ce6a1afd
commit f62953797c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,13 +71,9 @@ export class Signup extends Component<any, State> {
async fetchCaptcha() {
this.setState({ captchaRes: LOADING_REQUEST });
HttpService.client.setHeaders({
"Cache-Control": "private, no-cache",
});
this.setState({
captchaRes: await HttpService.client.getCaptcha(),
});
HttpService.client.setHeaders({});
this.setState(s => {
if (s.captchaRes.state === "success") {