odkrycie etag dla lib

This commit is contained in:
Mateusz Gruszczyński
2025-07-31 22:23:53 +02:00
parent ce7a5406a5
commit 048ed158a1
2 changed files with 2 additions and 6 deletions

5
app.py
View File

@@ -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/<path:filename>")
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