<p>(<em><strong>Note before:</strong></em> This is the inverse of the <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2262" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/2262/hovercard">previous problem</a>)<br>
(The other JS files had cache+expire, no eTag nor LM)<br>
(This JS file has NO cache+expire, and full eTag+LM)</p>
<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>. Obviously <em>Not Good</em> both for the user (slow) plus OSM (increased bandwidth + load).</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 JS file.</p>
<p>1 x JS<br>
eg <a href="https://piwik.openstreetmap.org/piwik.js" rel="nofollow">https://piwik.openstreetmap.org/piwik.js</a></p>
<ul>
<li><code>cache-control</code>: none</li>
<li><code>eTag</code>: strong</li>
<li><code>Expires</code>: none</li>
<li><code>Last-Modified</code>: yes</li>
<li>Request: (If-None-Match + If-Modified-Since are both present, but no cache, 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> 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/2263?email_source=notifications&email_token=AAK2OLJKYQYIMJW5CWIJKRDP22YPNA5CNFSM4HYSC2E2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZYPC2A">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLO3MTN6WSRQP5G26RDP22YPNANCNFSM4HYSC2EQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAK2OLKZO2ORZDJBCPM4363P22YPNA5CNFSM4HYSC2E2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZYPC2A.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/2263?email_source=notifications\u0026email_token=AAK2OLJKYQYIMJW5CWIJKRDP22YPNA5CNFSM4HYSC2E2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZYPC2A",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2263?email_source=notifications\u0026email_token=AAK2OLJKYQYIMJW5CWIJKRDP22YPNA5CNFSM4HYSC2E2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZYPC2A",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>