0

index.html comes with cache but it will be better for me if it is constantly reloaded, I don't want to have cache. how can I do that

Thank you!

  • It can help to set your server environment to not cache your index.html file. I had to do that when setting up a PWA using Firebase. – Kim Oct 17 '19 at 10:34
  • Possible duplicate of [How to disable caching with HttpClient get in Angular 6](https://stackoverflow.com/questions/53232382/how-to-disable-caching-with-httpclient-get-in-angular-6) – H. Hakvoort Oct 17 '19 at 11:47

1 Answers1

0

Answer, Using meta HTML tags, Disable browser caching

<meta http-equiv="Cache-control" content="no-cache, no-store, must-revalidate">

<meta http-equiv="Pragma" content="no-cache">

  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 01 '21 at 04:50
  • Could you add these META tags onto your answer, not as a comment? – Tyler2P Oct 01 '21 at 21:11