remotes/1693045480750635534/spooky-22
Aevann1 2021-08-31 17:45:36 +02:00
parent 71c128826b
commit 5cdbb82824
1 changed files with 1 additions and 1 deletions

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")