From 2b5f2538336f2747d33c244962d5754e5041a952 Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Sun, 19 Nov 2023 11:40:23 +0000 Subject: [PATCH] Looks like my caching prevention thing was broken? Oh well... --- app.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 800e050..e9a3b92 100644 --- a/app.py +++ b/app.py @@ -1,4 +1,5 @@ -from flask import Flask, render_template, request, redirect, url_for, session, make_response +from flask import Flask, render_template, request, redirect, url_for, session +import uuid import subprocess import re import os @@ -84,9 +85,6 @@ def create_email_account(username, password): @app.route('/') def index(): - # Prevent caching and bypassing the CAPTCHA - response.headers['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0' - # Generate the CAPTCHA for the user captcha_text = generate_captcha_text() image = ImageCaptcha().generate(captcha_text)