⚡ Added cache-control to image-server
This commit is contained in:
@@ -18,4 +18,5 @@ async def download_file(file_name: str):
|
|||||||
def iter_file():
|
def iter_file():
|
||||||
yield from download
|
yield from download
|
||||||
|
|
||||||
return StreamingResponse(iter_file(), media_type='image/*')
|
return StreamingResponse(iter_file(), media_type='image/*',
|
||||||
|
headers={"Cache-Control": "public, immutable, max-age=31536000"})
|
||||||
|
|||||||
Reference in New Issue
Block a user