From 048ed158a1c11c41f89e162e054924a03b2ae1e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Thu, 31 Jul 2025 22:23:53 +0200 Subject: [PATCH] odkrycie etag dla lib --- app.py | 5 ++--- templates/list.html | 3 --- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index 9bfa8ee..0eefd52 100644 --- a/app.py +++ b/app.py @@ -375,17 +375,16 @@ def serve_js_lib(filename): response = send_from_directory("static/lib/js", filename) response.headers["Cache-Control"] = app.config["LIB_JS_CACHE_CONTROL"] response.headers.pop("Content-Disposition", None) - response.headers.pop("Etag", None) + #response.headers.pop("Etag", None) return response -# CSS z cache na tydzień @static_bp.route("/static/lib/css/") def serve_css_lib(filename): response = send_from_directory("static/lib/css", filename) response.headers["Cache-Control"] = app.config["LIB_CSS_CACHE_CONTROL"] response.headers.pop("Content-Disposition", None) - response.headers.pop("Etag", None) + #response.headers.pop("Etag", None) return response diff --git a/templates/list.html b/templates/list.html index 0607cde..2b6433a 100644 --- a/templates/list.html +++ b/templates/list.html @@ -23,8 +23,6 @@ {% endif %} - - ← Powrót do list -