diff --git a/routes/__pycache__/main.cpython-313.pyc b/routes/__pycache__/main.cpython-313.pyc index c251670..7d9d1d0 100644 Binary files a/routes/__pycache__/main.cpython-313.pyc and b/routes/__pycache__/main.cpython-313.pyc differ diff --git a/routes/main.py b/routes/main.py index c2f74dd..5a78311 100644 --- a/routes/main.py +++ b/routes/main.py @@ -457,7 +457,6 @@ def init_routes(main_bp): def dynamic_colors(): """Generate dynamic CSS variables based on site settings""" logger.info(f"[Dynamic Colors] Request from: {request.referrer}") - logger.info(f"[Dynamic Colors] Request headers: {dict(request.headers)}") # Get colors from settings site_settings = SiteSettings.get_settings() @@ -465,7 +464,6 @@ def init_routes(main_bp): secondary_color = site_settings.secondary_color logger.info(f"[Dynamic Colors] Current colors - Primary: {primary_color}, Secondary: {secondary_color}") - logger.info(f"[Dynamic Colors] Settings updated at: {site_settings.updated_at}") # Convert hex to RGB for opacity calculations def hex_to_rgb(hex_color): @@ -519,10 +517,5 @@ def init_routes(main_bp): logger.info(f"[Dynamic Colors] Generated CSS with primary color: {primary_color}") logger.info(f"[Dynamic Colors] Cache version: {site_settings.updated_at.timestamp()}") - logger.info(f"[Dynamic Colors] Response headers: {dict(response.headers)}") - response = Response(css, mimetype='text/css') - response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate' - response.headers['Pragma'] = 'no-cache' - response.headers['Expires'] = '0' - return response \ No newline at end of file + return Response(css, mimetype='text/css') \ No newline at end of file diff --git a/templates/common/base.html b/templates/common/base.html index 50141b0..0835c1f 100644 --- a/templates/common/base.html +++ b/templates/common/base.html @@ -11,9 +11,7 @@ - + {% block extra_css %}{% endblock %}