fsdfsd
This commit is contained in:
parent
7b0e618548
commit
1b2d2e96be
8 changed files with 42 additions and 40 deletions
|
@ -307,7 +307,7 @@ def songs(id):
|
|||
|
||||
@app.get("/song/<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.add("Cache-Control", "public, max-age=2628000")
|
||||
return resp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue