Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev committed Aug 19, 2024
1 parent 1ca9636 commit 69fff68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def convert_image(image_path: Path, target_format: str) -> io.BytesIO:
@app.middleware("http")
async def add_cache_control_header(request: Request, call_next: Callable):
response = await call_next(request)
response.headers["Cache-Control"] = "public, max-age=7200"
response.headers["Cache-Control"] = "public, max-age=2592000"
return response

@app.get("/{file_path:path}", name="Get a file")
Expand Down

0 comments on commit 69fff68

Please sign in to comment.