title: pdf only shows up after hard refresh of webpage
body: <p>I'm trying to open a pdf in another tab. Upon clicking the link the first time, you are brought to an empty page, but after hard refreshing the page, the pdf displays correctly.</p>
  <pre><code>const Plot = ({name, pngUri, pdfUri, search, display, onHover}) =&gt; {
    return (
      &lt;Card className={cx(plotSty, display ? null : hidden)} onMouseEnter={onHover}&gt;
        &lt;a href={pdfUri} target=&quot;_blank&quot; rel='noopener noreferrer'&gt;
          &lt;CardHeader&gt;{hlSearch(name, search)}&lt;/CardHeader&gt;
          &lt;CardImg src={pngUri} /&gt;
        &lt;/a&gt;
      &lt;/Card&gt;
    );
  };
  
  </code></pre>
  <p>I did notice that when the new tab first loads, it tries run the main css and js files for the main webpages as well as just the pdf, and those show 404 errors (first image below). The &quot;type&quot; under inspect element &gt; network shows html. While after a hard reload, only the pdf is run (second image below). The &quot;type&quot; here is pdf.
  <a href="https://i.stack.imgur.com/svgnb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/svgnb.png" alt="before hard reload" /></a></p>
  <p><a href="https://i.stack.imgur.com/k2R9q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k2R9q.png" alt="after hard reload" /></a></p>
  <p>Anyone know what's going on here?</p>
  <p>I found this that might be related but I am not sure how I would apply to my situation <a href="https://stackoverflow.com/questions/51482452/opening-a-link-to-download-a-pdf-only-works-with-hard-reload-and-dev-tools-open">Opening a link to download a pdf only works with hard reload and dev tools open</a></p>