I am using AMD style in the ESRI Javascript API (along with the esri application boilerplate: https://github.com/Esri/application-boilerplate-js).
For some reason, the AMD modules from the js.arcgis.com CDN do not appear to be cached and I've been unable to determine why. Local AMD modules are caching fine:
Request headers:
Remote Address:54.230.50.98:80
Request URL:http://js.arcgis.com/3.10/js/esri/dijit/InfoView.js
Request Method:GET
Status Code:200 OK
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Cookie:rclg0=en; __unam=f220af1-14499213906-3dc5afe-11; esri_auth=[removed by author]
Host:js.arcgis.com
Referer: [removed by author]
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36
I would suspect this is from the Cache-Control: max-age=0 header, but I have no idea what would be setting that and why.
Cache-Control:max-age=0
is being set by the server. That is what prevents the files from being cached. You cannot control that.