In angular 2 app how can I cache certain local resources e.g. scripts
<p>In angular 2 app how can I cache certain local resources e.g. scripts </p>

<p>Can I use a .htaccess file at my route?</p>

<p>I have an app thats live and when I run a speed page test with <a href="http://gtmetrix.com" rel="nofollow noreferrer">gtmetrix.com</a>
I get an issue with <a href="https://gtmetrix.com/leverage-browser-caching.html" rel="nofollow noreferrer">leverage browser caching</a> and it says to cache some of my resources as I'm making too many requests even though these resources are stored locally with the app.</p>

<p>I'm not sure if an angular2 app can have a .htaccess file? or what it would look like for a file.</p>

<p>If I cannot use a .htaccess file can you let me know other ways please.</p>

<p>Thank you</p>