You are certainly looking for something like App Cache.
Please check HTML5 Rocks and Mozilla Docs
It's always good to set an expiry date when your HTTP Request is send to cache this files so that going ahead in time the old versions shouldn't be cached. This is the general usecase of highly scalable Modern Full Stack Javascript Application.
Hope that answers your Query.