The arcgis js cdn that ESRI suggest developers to use does not seem to be optimized for caching of resources and page speed. By running any of the arcgis js samples through Google Pagespeed, I get a result saying that the files received through the cdn expires after 60 minutes. As an example, please see the following:
So far, the only way I've seen to overcome this is to host your own version of the api, on your own server.
Are there any other alternatives to resolve this? And: Why is the cdn setup with such a short expiry date?