Skip to content

Commit

Permalink
set "Cache-Control" for svg result
Browse files Browse the repository at this point in the history
  • Loading branch information
HadronCollider committed Sep 20, 2024
1 parent c4118a8 commit 5b46ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def results_svg(_id):
<text xml:space="preserve" text-anchor="start" font-size="20" id="title" y="25" x="10" stroke-width="0" stroke="#000" fill="#000000">Работа проверяется</text>
</svg>
"""
return Response(svg_text, mimetype='image/svg+xml')
return Response(svg_text, headers=[("Cache-Control", "no-store")], mimetype='image/svg+xml')
else:
logger.info("Запрошенная проверка не найдена: " + _id)
return "No such check", 404

0 comments on commit 5b46ce9

Please sign in to comment.