How to detect whether URL request is ajax in service worker fetch API
<p>I am developing a Progressive web app. I want to cache two versions of a page</p>

<ol>
<li>Normal - full page including header and footer</li>
<li>Ajax - Content only</li>
</ol>

<p>In case of offline use, I need to detect whether request is for normal or Ajax version so I can return proper data.</p>