title: Play Framework: caching on templates
body: <p>I'm using Play Framework (v1.1.1) and I have a doubt about the #{cache} tag.</p>
  
  <p>I suppose the question would be "when should I use it?" but I think it's quite generic.</p>
  
  <p>So besides that, I would like to know if someone has checked its behaviour with Javascript. I understand that it will cache the output of other tags embedded in its body, but it will also cache Javascript? More specifically, if I include some script tags that reference external resources (like a CDN), the file will get cached too or only the tag?</p>