eddiestathopoulos

Some ESRI CDN-hosted files for Javascript API/Dojo are never cached

Discussion created by eddiestathopoulos on Oct 7, 2015
Latest reply on Oct 8, 2015 by csgeosol1

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

Outcomes