<p><em>Background</em><br>
Conducting a simple refresh (f5) on a recently downloaded <a href="https://www.openstreetmap.org/way/17236956" rel="nofollow">test map page</a> causes only half (10 out of 21) of the files to give a <code>304 Not Modified</code>.</p>
<p>Some of those files may well be dynamic, but some are clearly static. Because of the wide range of <em>Response Header</em> symptoms + my ignorance these are individual filetype reports to allow those with a working knowledge of the code to decipher it all. Please also note that since these tests the <a href="https://github.com/openstreetmap/operations/issues/305" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/operations/issues/305/hovercard"><code>Last-Modified</code> value</a> has been re-enabled & <code>eTag</code> disabled.</p>
<p><em>The Meat</em><br>
(probably) a static XML file. This is similar (but different) to the <a href="https://github.com/openstreetmap/operations/issues/306" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/operations/issues/306/hovercard">HTML file problem</a></p>
<p>1 x XML<br>
eg <a href="https://www.openstreetmap.org/api/0.6/way/17236956/full" rel="nofollow">https://www.openstreetmap.org/api/0.6/way/17236956/full</a></p>
<ul>
<li><code>cache-control</code>: max-age=0, private, must-revalidate</li>
<li><code>eTag</code>: none</li>
<li><code>Expires</code>: none</li>
<li><code>Last-Modified</code>: none</li>
<li>Request: (cache, but no <code>eTag</code> nor <code>Last-Modified</code>, so no request headers, so no 304)</li>
</ul>
<p><em>Related</em><br>
The tiles supplied by <em>toothless</em> (eg <a href="https://b.tile.openstreetmap.org/18/130245/85447.png" rel="nofollow">https://b.tile.openstreetmap.org/18/130245/85447.png</a>) are all dynamic yet all have a strong <code>eTag</code> (matched by the <code>If-None-Match</code>) + <code>Expires</code> + <code>Cache-Control</code> and thus get cached + a 304.</p>
<p><em>Extra</em><br>
See bottom of <a href="https://www.openstreetmap.org/user/alexkemp/diary/368814" rel="nofollow">this Diary page</a> for fuller details.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2264?email_source=notifications&email_token=AAK2OLOI3TO3CNRVTBKGRQ3P225UBA5CNFSM4HYSE4ZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZYQYTA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJKKOIFGRVCUSOTNNTP225UBANCNFSM4HYSE4ZA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAK2OLJKJZQODM33PNYQ2BLP225UBA5CNFSM4HYSE4ZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZYQYTA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2264?email_source=notifications\u0026email_token=AAK2OLOI3TO3CNRVTBKGRQ3P225UBA5CNFSM4HYSE4ZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZYQYTA",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2264?email_source=notifications\u0026email_token=AAK2OLOI3TO3CNRVTBKGRQ3P225UBA5CNFSM4HYSE4ZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZYQYTA",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>