<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>On 26.09.18 14:06, Feyaerts Vincent wrote:<br>
</p>
<blockquote type="cite"
cite="mid:0e98c59c1b39490cbac0af089e84d356@uantwerpen.be">
<p class="MsoNormal"><span lang="EN-US">I tried sending a 403 as a
response to the Prefetch request, but then Chrome just stops
and won’t ask again.</span></p>
</blockquote>
<p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);
font-family: HelveticaNeue; font-size: 12px; font-style: normal;
font-variant-caps: normal; font-weight: normal; letter-spacing:
normal; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; text-decoration: none;">This
chrome prefetch behavior is getting very annoying for us as well.
We were able to observe it while intercepting the chrome traffic
and is typically done while writing an SP address in the chrome
bar, before pressing "enter".<span class="Apple-converted-space"> </span><br>
</p>
<p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);
font-family: HelveticaNeue; font-size: 12px; font-style: normal;
font-variant-caps: normal; font-weight: normal; letter-spacing:
normal; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; text-decoration: none;">We are
also testing the "403" response workaround, using the following
code in our NGINX front-end on a test system:<br>
</p>
<p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);
font-family: HelveticaNeue; font-size: 12px; font-style: normal;
font-variant-caps: normal; font-weight: normal; letter-spacing:
normal; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; text-decoration: none;"> if
($http_purpose ~* "prefetch") {<br>
return 403;<br>
}</p>
<p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);
font-family: HelveticaNeue; font-size: 12px; font-style: normal;
font-variant-caps: normal; font-weight: normal; letter-spacing:
normal; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; text-decoration: none;">which
seemed to work quite well so far. Can you provide some more
details on why the 403 is not working for you?<br>
</p>
<p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);
font-family: HelveticaNeue; font-size: 12px; font-style: normal;
font-variant-caps: normal; font-weight: normal; letter-spacing:
normal; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; text-decoration: none;">we didn't
notice any issue so far in our tests: as chrome (<span
style="color: rgb(95, 99, 104); font-family: Roboto, system-ui,
sans-serif; font-size: 13px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; text-decoration-style: initial;
text-decoration-color: initial; display: inline !important;
float: none;">69.0.3497.100)</span> will get a 403 to the
prefetch request in the background, then after the user press
enter, chrome will make the second request (without the prefetch
header) which will be successfully served (tested with IDP 3.3.3)<br>
</p>
<p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);
font-family: HelveticaNeue; font-size: 12px; font-style: normal;
font-variant-caps: normal; font-weight: normal; letter-spacing:
normal; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; text-decoration: none;"><br>
</p>
<p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);
font-family: HelveticaNeue; font-size: 12px; font-style: normal;
font-variant-caps: normal; font-weight: normal; letter-spacing:
normal; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; text-decoration: none;">Regards,<br>
Alessandro</p>
</body>
</html>