Minor changes

This commit is contained in:
2023-11-19 08:03:23 +00:00
parent fee66ce7ed
commit 66698869d6
3 changed files with 3 additions and 6 deletions
+2 -1
View File
@@ -33,7 +33,8 @@ async def preview(req, path):
headers = {
"etag": etag,
"last-modified": format_date_time(stat.st_mtime),
"cache-control": "max-age=604800, immutable",
"cache-control": "max-age=604800, immutable"
+ ("" if config.config.public else ", private"),
"content-type": "image/webp",
"content-disposition": f"inline; filename*=UTF-8''{urllib.parse.quote(savename.as_posix())}",
}