<p></p>
<h3 dir="auto">URL</h3>
<p dir="auto"><a href="https://www.openstreetmap.org/messages/inbox" rel="nofollow">https://www.openstreetmap.org/messages/inbox</a></p>
<h3 dir="auto">How to reproduce the issue?</h3>
<ol start="0" dir="auto">
<li>Have at least 1 message in the inbox</li>
<li>Mark it as read/unread</li>
<li>Notice that two requests are made at the same time (one POST and one GET).</li>
</ol>
<p dir="auto">The POST request goes to <code class="notranslate">https://www.openstreetmap.org/messages/{id}/mark?mark=unread</code>, while the GET request goes to <code class="notranslate">https://www.openstreetmap.org/messages/inbox</code>. Both requests return the same HTML code, which seems a bit wasteful on server resources if both are generated independently.</p>
<p dir="auto">The most logical solution would be to change the response body of the POST request to have some short status code/text instead of the whole page HTML (assuming that won't break the turbo integration).</p>
<h3 dir="auto">Screenshot(s) or anything else?</h3>
<p dir="auto"><a href="https://github.com/user-attachments/assets/54255672-ea65-417f-887a-72be29f7097d">2024-09-18_00-39.png (view on web)</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5222">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKBRCTIQAALOOS3XXTZXGXA5AVCNFSM6AAAAABOOEQ6JSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUZTIMRVGEYTQOI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLM2QJBAEBDYB2TPUOTZXGXA5A5CNFSM6AAAAABOOEQ6JSWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJODM2WU.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/5222</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/5222",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5222",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>