Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def view_image(request):
content_type = 'application/octet-stream'

return web.Response(body=content, content_type=content_type,
headers={"Content-Disposition": f"filename=\"{filename}{ext}\""})
headers={"Content-Disposition": f"filename=\"{filename}{ext}\"", "Cache-Control": "max-age=31536000"})

# print(f"[Prompt Gallery] Image not found: {os.path.join(base_path, filename)}") - turned off for spam reasons
return web.Response(status=404)
Expand Down
7 changes: 7 additions & 0 deletions promptImages/promptGallery_libraries.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@
"skipLevels": 0,
"sections": null,
"order": 10
},
{
"name": "Danbooru-styles.yaml",
"type": "styles",
"skipLevels": 0,
"sections": null,
"order": 11
}
]
}
Loading