playframework - Play Framework: caching on templates -
i'm using play framework (v1.1.1) , have doubt #{cache} tag.
i suppose question "when should use it?" think it's quite generic.
so besides that, know if has checked behaviour javascript. understand cache output of other tags embedded in body, cache javascript? more specifically, if include script tags reference external resources (like cdn), file cached or tag?
the purpose of cache tag cache output server sends client. javascript, images , other information contained within code sent client side not cached, unless told headers set in tag of html.
by default, play (if extend main.html) not specify cache-control headers, therefore scripts cached based on browsers standard caching policy. should "no-cache" according http spec, doubtful of whether case.
Comments
Post a Comment