We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6233e6 commit 189b6d3Copy full SHA for 189b6d3
pictures/views.py
@@ -18,7 +18,7 @@ def placeholder(request, width, ratio, file_type, alt):
18
img = utils.placeholder(width, height, alt=alt)
19
response = HttpResponse(
20
content_type=f"image/{file_type.lower()}",
21
- headers={"Cache-Control": f"public, max-age={60*60*24*365}"},
+ headers={"Cache-Control": f"public, max-age={60 * 60 * 24 * 365}"}, # 1 year
22
)
23
img.save(response, file_type.upper())
24
return response
0 commit comments