JavaScript Angular2 force/hard reload of browser cached scripts?

I know that there are a lot of posts about that in web, but none of them satisfied me. Most of people recommends appending a verizon number to each script/css file. But this sound like a lot of job to me (project is qute bit), maybe there is some way to version only output files, some CLI command I dont know?

My solution was based of simple pinging to API for new version number, when > than stored then reload the page. And here is a tricky part - even location.reload(true) does not refresh the cached angular stuff. Manually CTRL+SHIFT+R does this job nicely. This would be good enough for me if the programmaticly hard reload would work.

I also tried a this.compiler.clearCache(); but also with no effect.

Thanks in advance! :)

Answer:1

Consider the following code: if(boolean) return; What is the purpose if this condition? Is it logically the same as: if(boolean) { return true; } Thank you for answering!

Consider the following code: if(boolean) return; What is the purpose if this condition? Is it logically the same as: if(boolean) { return true; } Thank you for answering!

  1. function boolean return
  2. function boolean return vb.net

I have a div component to clone that contains primefaces components and that goes like this : <div id="languageBox1"> <p> <h:form> <label>Language</...

I have a div component to clone that contains primefaces components and that goes like this : <div id="languageBox1"> <p> <h:form> <label>Language</...

  1. primefaces clone component

Running into a bit of a brick wall here with my limited coding knowledge. I have a dropdown menu which displays images upon selection, that's all well and good. How do I add a second dropdown and ...

Running into a bit of a brick wall here with my limited coding knowledge. I have a dropdown menu which displays images upon selection, that's all well and good. How do I add a second dropdown and ...

  1. display images from s3
  2. display images from json array
  3. display images from firebase storage
  4. display images from folder using jquery
  5. display images from database
  6. display images from firebase storage android
  7. display images from folder in html
  8. display images from database in php
  9. display images from array javascript
  10. display images from a folder using php
  11. display images from terminal
  12. display images from specific folder android
  13. display images from database in html
  14. display images from folder python
  15. display images from folder using javascript

window.getSelection().anchorNode returns quite a lot of details about the node where the user clicked to start the selection, but how can I get attributes of that text node, like class, id etc.? ...

window.getSelection().anchorNode returns quite a lot of details about the node where the user clicked to start the selection, but how can I get attributes of that text node, like class, id etc.? ...