fddf
This commit is contained in:
parent
936f9338b1
commit
457a3cc748
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ def songs(id):
|
||||||
return redirect(f"/song/{user.song}.mp3")
|
return redirect(f"/song/{user.song}.mp3")
|
||||||
|
|
||||||
@app.get("/song/<song>")
|
@app.get("/song/<song>")
|
||||||
def songs(song):
|
def song(song):
|
||||||
resp = make_response(send_from_directory('/songs/', song))
|
resp = make_response(send_from_directory('/songs/', song))
|
||||||
resp.headers.remove("Cache-Control")
|
resp.headers.remove("Cache-Control")
|
||||||
resp.headers.add("Cache-Control", "public, max-age=2628000")
|
resp.headers.add("Cache-Control", "public, max-age=2628000")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue