This commit is contained in:
Aevann1 2021-08-31 17:45:36 +02:00
parent 936f9338b1
commit 457a3cc748

View file

@ -140,7 +140,7 @@ def songs(id):
return redirect(f"/song/{user.song}.mp3")
@app.get("/song/<song>")
def songs(song):
def song(song):
resp = make_response(send_from_directory('/songs/', song))
resp.headers.remove("Cache-Control")
resp.headers.add("Cache-Control", "public, max-age=2628000")