The js.scripts are not getting cached inspite of configuring CDN in azure. What could be the reasons?
Kevin, how are you determining that the .js isn't caching? From the headers?
The Network panel records information is measured about each network operation on a page, including detailed timing data. the js.script files are not cached - the files are in seconds to load.
If you look further at the JS request, you should be able to see the headers. The headers should tell you whether the request wants to be cached. The CDN uses the same cache setting as the server it got the content from. If the headers are correct, then you can check if your browser is purposely avoiding caching to make it easier for developers who are constantly changing code. There should be an option to disable that, if that the case.
"Seconds to load" is also concerning. Are you minifiy-ing and and gzipping your JS? Maybe there are some libraries you could trim out? Maybe you can separate them into separate downloads and only load the scripts you need?