I am developing an application for a client and am working on optimizing page-load times. All is well. I'm under a second.
However, I've noticed that stylesheets that are deemed necessary for an esri map and dijits are never cached when retrieved from the ESRI CDN. Such as claro.css and https://js.arcgis.com/3.14/esri/css/esri.css. esri.css is 41.4KB and seeing it as never caches and sometimes the response time can be pretty bad, this is just a bit annoying.
I've since moved my dijit themes source to the Google CDN as it will give me a 304. I could host these locally but deploying only the files I need would be a pain as esri.css references all sorts of directories and my map is so barebones, I don't want to push the whole API just to get a single 304.
Any way the ESRI CDN will start caching these responses?
Thanks,
Eddie
Eddie,
Something else to try in your quest for increasing performance - using the dojo builder... This is an old article, but still contains some good information:
Geospatial Scott: Using The Dojo Build System To Speed Up Your ESRI JavaScript API Apps